about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts/check.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-02 15:55:17 -0400
committerMichael Goulet <michael@errs.io>2024-07-02 17:28:03 -0400
commitb1059ccda210e11c19b3c639a13ddd64de781daf (patch)
treea96817d5cd61b9e690e48dc079395ce3905eb7fe /compiler/rustc_const_eval/src/check_consts/check.rs
parent3273ccea4b2c1995a7ddd059657ded593eb859c9 (diff)
downloadrust-b1059ccda210e11c19b3c639a13ddd64de781daf.tar.gz
rust-b1059ccda210e11c19b3c639a13ddd64de781daf.zip
Instance::resolve -> Instance::try_resolve, and other nits
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/check.rs')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/check.rs b/compiler/rustc_const_eval/src/check_consts/check.rs
index ab60cc37920..0d8a17775dd 100644
--- a/compiler/rustc_const_eval/src/check_consts/check.rs
+++ b/compiler/rustc_const_eval/src/check_consts/check.rs
@@ -768,7 +768,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
                         is_trait = true;
 
                         if let Ok(Some(instance)) =
-                            Instance::resolve(tcx, param_env, callee, fn_args)
+                            Instance::try_resolve(tcx, param_env, callee, fn_args)
                             && let InstanceKind::Item(def) = instance.def
                         {
                             // Resolve a trait method call to its concrete implementation, which may be in a