File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -652,8 +652,10 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
652652 /// Checks whether values of this type `T` implement the `Freeze`
653653 /// trait -- frozen types are those that do not contain a
654654 /// `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.
655+ /// distinguish "true immutability", which is relevant to
656+ /// 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.
657659 pub fn is_freeze ( & ' tcx self ,
658660 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
659661 param_env : ty:: ParamEnv < ' tcx > ,
You can’t perform that action at this time.
0 commit comments