Skip to content

Commit

Permalink
Assert that the trait ref does not need inference
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Mar 30, 2020
1 parent b00ba38 commit 12d9f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_ty/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn resolve_associated_item<'tcx>(
param_env, trait_item, rcvr_substs, impl_data
);
assert!(!rcvr_substs.needs_infer());
assert!(!trait_ref.needs_infer());

let trait_def_id = tcx.trait_id_of_impl(impl_data.impl_def_id).unwrap();
let trait_def = tcx.trait_def(trait_def_id);
Expand Down

0 comments on commit 12d9f4e

Please sign in to comment.