about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/util/find_self_call.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_middle/src/util/find_self_call.rs
parenta2374e65aafd47fa68a3954fa2a3116c519aa7e5 (diff)
downloadrust-c94410c1458f9ea55e51fc9af478d94a82ec90a0.tar.gz
rust-c94410c1458f9ea55e51fc9af478d94a82ec90a0.zip
rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const
Diffstat (limited to 'compiler/rustc_middle/src/util/find_self_call.rs')
-rw-r--r--compiler/rustc_middle/src/util/find_self_call.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/util/find_self_call.rs b/compiler/rustc_middle/src/util/find_self_call.rs
index 1b845334c49..9f1e4ac11c2 100644
--- a/compiler/rustc_middle/src/util/find_self_call.rs
+++ b/compiler/rustc_middle/src/util/find_self_call.rs
@@ -17,8 +17,8 @@ pub fn find_self_call<'tcx>(
         &body[block].terminator
     {
         debug!("find_self_call: func={:?}", func);
-        if let Operand::Constant(box Constant { literal, .. }) = func {
-            if let ty::FnDef(def_id, fn_args) = *literal.ty().kind() {
+        if let Operand::Constant(box ConstOperand { const_, .. }) = func {
+            if let ty::FnDef(def_id, fn_args) = *const_.ty().kind() {
                 if let Some(ty::AssocItem { fn_has_self_parameter: true, .. }) =
                     tcx.opt_associated_item(def_id)
                 {