about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-18 16:52:47 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-26 20:28:25 -0700
commitc2414dfaa4a01a60ec65c44879e103c3fc3152bb (patch)
tree4db7a192c7995a704a242df91e27a9aed1800660 /compiler/rustc_const_eval/src/transform
parente982971ff22fa190369b5f536403c37c52b10a26 (diff)
downloadrust-c2414dfaa4a01a60ec65c44879e103c3fc3152bb.tar.gz
rust-c2414dfaa4a01a60ec65c44879e103c3fc3152bb.zip
change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/mod.rs b/compiler/rustc_const_eval/src/transform/check_consts/mod.rs
index 64155b2594b..e841500bf3e 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/mod.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/mod.rs
@@ -72,7 +72,7 @@ impl<'mir, 'tcx> ConstCx<'mir, 'tcx> {
             let ty::Closure(_, substs) = ty.kind() else { bug!("type_of closure not ty::Closure") };
             substs.as_closure().sig()
         } else {
-            self.tcx.bound_fn_sig(did).subst_identity()
+            self.tcx.fn_sig(did).subst_identity()
         }
     }
 }