Thread a ParamEnv down to might_permit_raw_init
This commit is contained in:
parent
662199f125
commit
5bfad5cc85
8 changed files with 45 additions and 22 deletions
|
@ -2109,12 +2109,12 @@ rustc_queries! {
|
|||
separate_provide_extern
|
||||
}
|
||||
|
||||
query permits_uninit_init(key: TyAndLayout<'tcx>) -> bool {
|
||||
desc { "checking to see if `{}` permits being left uninit", key.ty }
|
||||
query permits_uninit_init(key: ty::ParamEnvAnd<'tcx, TyAndLayout<'tcx>>) -> bool {
|
||||
desc { "checking to see if `{}` permits being left uninit", key.value.ty }
|
||||
}
|
||||
|
||||
query permits_zero_init(key: TyAndLayout<'tcx>) -> bool {
|
||||
desc { "checking to see if `{}` permits being left zeroed", key.ty }
|
||||
query permits_zero_init(key: ty::ParamEnvAnd<'tcx, TyAndLayout<'tcx>>) -> bool {
|
||||
desc { "checking to see if `{}` permits being left zeroed", key.value.ty }
|
||||
}
|
||||
|
||||
query compare_impl_const(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue