about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/reveal_all.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-20 20:51:14 +0200
committerRalf Jung <post@ralfj.de>2023-09-21 08:12:30 +0200
commitc94410c1458f9ea55e51fc9af478d94a82ec90a0 (patch)
tree03d021ce987ce3e284a1e0a05d0a1c7e0622d983 /compiler/rustc_mir_transform/src/reveal_all.rs
parenta2374e65aafd47fa68a3954fa2a3116c519aa7e5 (diff)
downloadrust-c94410c1458f9ea55e51fc9af478d94a82ec90a0.tar.gz
rust-c94410c1458f9ea55e51fc9af478d94a82ec90a0.zip
rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const
Diffstat (limited to 'compiler/rustc_mir_transform/src/reveal_all.rs')
-rw-r--r--compiler/rustc_mir_transform/src/reveal_all.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/reveal_all.rs b/compiler/rustc_mir_transform/src/reveal_all.rs
index 23442f8b97b..065793348e4 100644
--- a/compiler/rustc_mir_transform/src/reveal_all.rs
+++ b/compiler/rustc_mir_transform/src/reveal_all.rs
@@ -35,12 +35,12 @@ impl<'tcx> MutVisitor<'tcx> for RevealAllVisitor<'tcx> {
     }
 
     #[inline]
-    fn visit_constant(&mut self, constant: &mut Constant<'tcx>, _: Location) {
+    fn visit_constant(&mut self, constant: &mut ConstOperand<'tcx>, _: Location) {
         // We have to use `try_normalize_erasing_regions` here, since it's
         // possible that we visit impossible-to-satisfy where clauses here,
         // see #91745
-        if let Ok(c) = self.tcx.try_normalize_erasing_regions(self.param_env, constant.literal) {
-            constant.literal = c;
+        if let Ok(c) = self.tcx.try_normalize_erasing_regions(self.param_env, constant.const_) {
+            constant.const_ = c;
         }
     }