about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-28 21:15:18 +0200
committerRalf Jung <post@ralfj.de>2024-09-28 21:15:18 +0200
commit921a5ef6d7d2f965dab5b1f8b896dfe042db231b (patch)
tree9663672b2c3ef3e22b83c4ebd1b4409e5a774e61 /compiler/rustc_mir_build/src
parente6eb45143cc4dd236dacd6fd8dc74eb1ee6852b2 (diff)
downloadrust-921a5ef6d7d2f965dab5b1f8b896dfe042db231b.tar.gz
rust-921a5ef6d7d2f965dab5b1f8b896dfe042db231b.zip
try to get rid of mir::Const::normalize
Diffstat (limited to 'compiler/rustc_mir_build/src')
-rw-r--r--compiler/rustc_mir_build/src/thir/cx/expr.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_mir_build/src/thir/cx/expr.rs b/compiler/rustc_mir_build/src/thir/cx/expr.rs
index fbd45f59a4f..f83c7852568 100644
--- a/compiler/rustc_mir_build/src/thir/cx/expr.rs
+++ b/compiler/rustc_mir_build/src/thir/cx/expr.rs
@@ -703,8 +703,7 @@ impl<'tcx> Cx<'tcx> {
                                 tcx,
                                 anon_const.def_id.to_def_id(),
                             )
-                            .instantiate_identity()
-                            .normalize(tcx, self.param_env);
+                            .instantiate_identity();
                             let span = tcx.def_span(anon_const.def_id);
 
                             InlineAsmOperand::Const { value, span }
@@ -714,8 +713,7 @@ impl<'tcx> Cx<'tcx> {
                                 tcx,
                                 anon_const.def_id.to_def_id(),
                             )
-                            .instantiate_identity()
-                            .normalize(tcx, self.param_env);
+                            .instantiate_identity();
                             let span = tcx.def_span(anon_const.def_id);
 
                             InlineAsmOperand::SymFn { value, span }