Skip to content

Commit 12d9f4e

Browse files
Assert that the trait ref does not need inference
1 parent b00ba38 commit 12d9f4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_ty/instance.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn resolve_associated_item<'tcx>(
8989
param_env, trait_item, rcvr_substs, impl_data
9090
);
9191
assert!(!rcvr_substs.needs_infer());
92+
assert!(!trait_ref.needs_infer());
9293

9394
let trait_def_id = tcx.trait_id_of_impl(impl_data.impl_def_id).unwrap();
9495
let trait_def = tcx.trait_def(trait_def_id);

0 commit comments

Comments
 (0)