@@ -880,6 +880,7 @@ rustc_queries! {
880880 key: ty:: ParamEnvAnd <' tcx, ConstAlloc <' tcx>>
881881 ) -> Option <ty:: ValTree <' tcx>> {
882882 desc { "destructure constant" }
883+ remap_env_constness
883884 }
884885
885886 /// Destructure a constant ADT or array into its variant index and its
@@ -888,6 +889,7 @@ rustc_queries! {
888889 key: ty:: ParamEnvAnd <' tcx, & ' tcx ty:: Const <' tcx>>
889890 ) -> mir:: DestructuredConst <' tcx> {
890891 desc { "destructure constant" }
892+ remap_env_constness
891893 }
892894
893895 /// Dereference a constant reference or raw pointer and turn the result into a constant
@@ -896,6 +898,7 @@ rustc_queries! {
896898 key: ty:: ParamEnvAnd <' tcx, & ' tcx ty:: Const <' tcx>>
897899 ) -> & ' tcx ty:: Const <' tcx> {
898900 desc { "deref constant" }
901+ remap_env_constness
899902 }
900903
901904 query const_caller_location( key: ( rustc_span:: Symbol , u32 , u32 ) ) -> ConstValue <' tcx> {
@@ -1100,26 +1103,32 @@ rustc_queries! {
11001103 /// `ty.is_copy()`, etc, since that will prune the environment where possible.
11011104 query is_copy_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11021105 desc { "computing whether `{}` is `Copy`" , env. value }
1106+ remap_env_constness
11031107 }
11041108 /// Query backing `TyS::is_sized`.
11051109 query is_sized_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11061110 desc { "computing whether `{}` is `Sized`" , env. value }
1111+ remap_env_constness
11071112 }
11081113 /// Query backing `TyS::is_freeze`.
11091114 query is_freeze_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11101115 desc { "computing whether `{}` is freeze" , env. value }
1116+ remap_env_constness
11111117 }
11121118 /// Query backing `TyS::is_unpin`.
11131119 query is_unpin_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11141120 desc { "computing whether `{}` is `Unpin`" , env. value }
1121+ remap_env_constness
11151122 }
11161123 /// Query backing `TyS::needs_drop`.
11171124 query needs_drop_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11181125 desc { "computing whether `{}` needs drop" , env. value }
1126+ remap_env_constness
11191127 }
11201128 /// Query backing `TyS::has_significant_drop_raw`.
11211129 query has_significant_drop_raw( env: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
11221130 desc { "computing whether `{}` has a significant drop" , env. value }
1131+ remap_env_constness
11231132 }
11241133
11251134 /// Query backing `TyS::is_structural_eq_shallow`.
@@ -1158,6 +1167,7 @@ rustc_queries! {
11581167 key: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>
11591168 ) -> Result <ty:: layout:: TyAndLayout <' tcx>, ty:: layout:: LayoutError <' tcx>> {
11601169 desc { "computing layout of `{}`" , key. value }
1170+ remap_env_constness
11611171 }
11621172
11631173 /// Compute a `FnAbi` suitable for indirect calls, i.e. to `fn` pointers.
@@ -1168,6 +1178,7 @@ rustc_queries! {
11681178 key: ty:: ParamEnvAnd <' tcx, ( ty:: PolyFnSig <' tcx>, & ' tcx ty:: List <Ty <' tcx>>) >
11691179 ) -> Result <& ' tcx abi:: call:: FnAbi <' tcx, Ty <' tcx>>, ty:: layout:: FnAbiError <' tcx>> {
11701180 desc { "computing call ABI of `{}` function pointers" , key. value. 0 }
1181+ remap_env_constness
11711182 }
11721183
11731184 /// Compute a `FnAbi` suitable for declaring/defining an `fn` instance, and for
@@ -1179,6 +1190,7 @@ rustc_queries! {
11791190 key: ty:: ParamEnvAnd <' tcx, ( ty:: Instance <' tcx>, & ' tcx ty:: List <Ty <' tcx>>) >
11801191 ) -> Result <& ' tcx abi:: call:: FnAbi <' tcx, Ty <' tcx>>, ty:: layout:: FnAbiError <' tcx>> {
11811192 desc { "computing call ABI of `{}`" , key. value. 0 }
1193+ remap_env_constness
11821194 }
11831195
11841196 query dylib_dependency_formats( _: CrateNum )
@@ -1463,6 +1475,7 @@ rustc_queries! {
14631475 key: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>
14641476 ) -> ty:: inhabitedness:: DefIdForest {
14651477 desc { "computing the inhabitedness of `{:?}`" , key }
1478+ remap_env_constness
14661479 }
14671480
14681481 query dep_kind( _: CrateNum ) -> CrateDepKind {
@@ -1654,27 +1667,31 @@ rustc_queries! {
16541667 goal: ParamEnvAnd <' tcx, GenericArg <' tcx>>
16551668 ) -> GenericArg <' tcx> {
16561669 desc { "normalizing `{}`" , goal. value }
1670+ remap_env_constness
16571671 }
16581672
16591673 /// Do not call this query directly: invoke `normalize_erasing_regions` instead.
16601674 query normalize_mir_const_after_erasing_regions(
16611675 goal: ParamEnvAnd <' tcx, mir:: ConstantKind <' tcx>>
16621676 ) -> mir:: ConstantKind <' tcx> {
16631677 desc { "normalizing `{}`" , goal. value }
1678+ remap_env_constness
16641679 }
16651680
16661681 /// Do not call this query directly: invoke `try_normalize_erasing_regions` instead.
16671682 query try_normalize_generic_arg_after_erasing_regions(
16681683 goal: ParamEnvAnd <' tcx, GenericArg <' tcx>>
16691684 ) -> Result <GenericArg <' tcx>, NoSolution > {
16701685 desc { "normalizing `{}`" , goal. value }
1686+ remap_env_constness
16711687 }
16721688
16731689 /// Do not call this query directly: invoke `try_normalize_erasing_regions` instead.
16741690 query try_normalize_mir_const_after_erasing_regions(
16751691 goal: ParamEnvAnd <' tcx, mir:: ConstantKind <' tcx>>
16761692 ) -> Result <mir:: ConstantKind <' tcx>, NoSolution > {
16771693 desc { "normalizing `{}`" , goal. value }
1694+ remap_env_constness
16781695 }
16791696
16801697 query implied_outlives_bounds(
@@ -1836,6 +1853,7 @@ rustc_queries! {
18361853 key: ty:: ParamEnvAnd <' tcx, ( DefId , SubstsRef <' tcx>) >
18371854 ) -> Result <Option <ty:: Instance <' tcx>>, ErrorReported > {
18381855 desc { "resolving instance `{}`" , ty:: Instance :: new( key. value. 0 , key. value. 1 ) }
1856+ remap_env_constness
18391857 }
18401858
18411859 query resolve_instance_of_const_arg(
@@ -1845,6 +1863,7 @@ rustc_queries! {
18451863 "resolving instance of the const argument `{}`" ,
18461864 ty:: Instance :: new( key. value. 0 . to_def_id( ) , key. value. 2 ) ,
18471865 }
1866+ remap_env_constness
18481867 }
18491868
18501869 query normalize_opaque_types( key: & ' tcx ty:: List <ty:: Predicate <' tcx>>) -> & ' tcx ty:: List <ty:: Predicate <' tcx>> {
@@ -1859,6 +1878,7 @@ rustc_queries! {
18591878 /// size, to account for partial initialisation. See #49298 for details.)
18601879 query conservative_is_privately_uninhabited( key: ty:: ParamEnvAnd <' tcx, Ty <' tcx>>) -> bool {
18611880 desc { "conservatively checking if {:?} is privately uninhabited" , key }
1881+ remap_env_constness
18621882 }
18631883
18641884 query limits( key: ( ) ) -> Limits {
0 commit comments