diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-10 17:01:55 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-10 17:01:55 +0000 |
| commit | 6227acc749556a5b5e111b06ab3499da29349f49 (patch) | |
| tree | 2c2fe053c7ea02f48230a93f6624dffb0f022d7b /compiler/rustc_middle/src/query | |
| parent | 100199c9aa50b0c47b37c9c86335d68b2a77b535 (diff) | |
| download | rust-6227acc749556a5b5e111b06ab3499da29349f49.tar.gz rust-6227acc749556a5b5e111b06ab3499da29349f49.zip | |
Dont unwrap and re-wrap typing envs
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/erase.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/erase.rs b/compiler/rustc_middle/src/query/erase.rs index 6035056baaf..7c998761a9d 100644 --- a/compiler/rustc_middle/src/query/erase.rs +++ b/compiler/rustc_middle/src/query/erase.rs @@ -389,6 +389,7 @@ tcx_lifetime! { rustc_middle::ty::layout::FnAbiError, rustc_middle::ty::layout::LayoutError, rustc_middle::ty::ParamEnv, + rustc_middle::ty::TypingEnv, rustc_middle::ty::Predicate, rustc_middle::ty::SymbolName, rustc_middle::ty::TraitRef, diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index d03f01bf863..09e4598a67f 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1571,7 +1571,7 @@ rustc_queries! { /// Like `param_env`, but returns the `ParamEnv` after all opaque types have been /// replaced with their hidden type. This is used in the old trait solver /// when in `PostAnalysis` mode and should not be called directly. - query param_env_normalized_for_post_analysis(def_id: DefId) -> ty::ParamEnv<'tcx> { + query typing_env_normalized_for_post_analysis(def_id: DefId) -> ty::TypingEnv<'tcx> { desc { |tcx| "computing revealed normalized predicates of `{}`", tcx.def_path_str(def_id) } } |
