diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-11-19 11:57:22 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2019-01-02 17:35:06 -0500 |
| commit | 13ea9b877c68c62a52140f47d5e38adf5ee6c808 (patch) | |
| tree | c6e60d775b61017a0ce9735f183384e7a47a7a03 | |
| parent | c04563e1b00551bbc395d5366df3dc98227a05a5 (diff) | |
| download | rust-13ea9b877c68c62a52140f47d5e38adf5ee6c808.tar.gz rust-13ea9b877c68c62a52140f47d5e38adf5ee6c808.zip | |
pacify the mercilous eddyb ;)
| -rw-r--r-- | src/librustc/ty/util.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc/ty/util.rs b/src/librustc/ty/util.rs index e50095c94d7..c98c575fce2 100644 --- a/src/librustc/ty/util.rs +++ b/src/librustc/ty/util.rs @@ -652,8 +652,10 @@ impl<'a, 'tcx> ty::TyS<'tcx> { /// Checks whether values of this type `T` implement the `Freeze` /// trait -- frozen types are those that do not contain a /// `UnsafeCell` anywhere. This is a language concept used to - /// determine how to handle `static` values, the trait itself is - /// not exposed to end users. + /// distinguish "true immutability", which is relevant to + /// optimization as well as the rules around static values. Note + /// that the `Freeze` trait is not exposed to end users and is + /// effectively an implementation detail. pub fn is_freeze(&'tcx self, tcx: TyCtxt<'a, 'tcx, 'tcx>, param_env: ty::ParamEnv<'tcx>, |
