adding is_freeze to TyLayoutMethods

This commit is contained in:
Saleem Jaffer 2019-05-03 13:05:10 +05:30
parent 852dd491ef
commit 8802dc037e
2 changed files with 17 additions and 0 deletions

View file

@ -1961,6 +1961,14 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx>
}
}
fn is_freeze(
this: TyLayout<'tcx>,
cx: &C,
param_env: Self::ParamEnv,
)-> bool {
this.ty.is_freeze(cx.tcx(), param_env, DUMMY_SP)
}
}
struct Niche {