We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c04563e commit 13ea9b8Copy full SHA for 13ea9b8
src/librustc/ty/util.rs
@@ -652,8 +652,10 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
652
/// Checks whether values of this type `T` implement the `Freeze`
653
/// trait -- frozen types are those that do not contain a
654
/// `UnsafeCell` anywhere. This is a language concept used to
655
- /// determine how to handle `static` values, the trait itself is
656
- /// not exposed to end users.
+ /// distinguish "true immutability", which is relevant to
+ /// optimization as well as the rules around static values. Note
657
+ /// that the `Freeze` trait is not exposed to end users and is
658
+ /// effectively an implementation detail.
659
pub fn is_freeze(&'tcx self,
660
tcx: TyCtxt<'a, 'tcx, 'tcx>,
661
param_env: ty::ParamEnv<'tcx>,
0 commit comments