Skip to content

Commit

Permalink
pacify the mercilous eddyb ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jan 2, 2019
1 parent c04563e commit 13ea9b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustc/ty/util.rs
Expand Up @@ -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>,
Expand Down

0 comments on commit 13ea9b8

Please sign in to comment.