diff options
| author | bors <bors@rust-lang.org> | 2024-11-20 06:22:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-20 06:22:01 +0000 |
| commit | 70e814bd9e532a302763f870c665c5af59c2b632 (patch) | |
| tree | e17f062fe5e3c01ed7127c9365d828e681d3c514 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | bcfea1f8d253fd43eab36832fa601d192ac603d5 (diff) | |
| parent | 002efeb72ac465cf04660537ca902172ab0e491b (diff) | |
| download | rust-70e814bd9e532a302763f870c665c5af59c2b632.tar.gz rust-70e814bd9e532a302763f870c665c5af59c2b632.zip | |
Auto merge of #133212 - lcnr:questionable-uwu, r=compiler-errors
continue `ParamEnv` to `TypingEnv` transition cc #132279 r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 564e45c677d..0a26b6776bb 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -190,8 +190,8 @@ pub fn check_crate(tcx: TyCtxt<'_>) { DefKind::Const if tcx.generics_of(item_def_id).is_empty() => { let instance = ty::Instance::new(item_def_id.into(), ty::GenericArgs::empty()); let cid = GlobalId { instance, promoted: None }; - let param_env = ty::ParamEnv::reveal_all(); - tcx.ensure().eval_to_const_value_raw(param_env.and(cid)); + let typing_env = ty::TypingEnv::fully_monomorphized(); + tcx.ensure().eval_to_const_value_raw(typing_env.as_query_input(cid)); } _ => (), } |
