Skip to content

Commit 13ea9b8

Browse files
committed
pacify the mercilous eddyb ;)
1 parent c04563e commit 13ea9b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc/ty/util.rs

+4-2
Original file line numberDiff line numberDiff 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>,

0 commit comments

Comments
 (0)