about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/vtable.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-12 12:53:03 -0400
committerMichael Goulet <michael@errs.io>2024-07-02 15:48:48 -0400
commitd3a742bde999add41c002513fccd0949859128f4 (patch)
treef6cce0033cf22775b57ee1699c47994bfc0fca6f /compiler/rustc_trait_selection/src/traits/vtable.rs
parentbcf38b5f54cd269e9569fcfbc79376e955462331 (diff)
downloadrust-d3a742bde999add41c002513fccd0949859128f4.tar.gz
rust-d3a742bde999add41c002513fccd0949859128f4.zip
Miscellaneous renaming
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/vtable.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/vtable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/vtable.rs b/compiler/rustc_trait_selection/src/traits/vtable.rs
index e54ced85dee..e710b17a10d 100644
--- a/compiler/rustc_trait_selection/src/traits/vtable.rs
+++ b/compiler/rustc_trait_selection/src/traits/vtable.rs
@@ -285,13 +285,13 @@ fn vtable_entries<'tcx>(
                         return VtblEntry::Vacant;
                     }
 
-                    let instance = ty::Instance::resolve_for_vtable(
+                    let instance = ty::Instance::expect_resolve_for_vtable(
                         tcx,
                         ty::ParamEnv::reveal_all(),
                         def_id,
                         args,
-                    )
-                    .expect("resolution failed during building vtable representation");
+                    );
+
                     VtblEntry::Method(instance)
                 });