Remove some unnecessary trait_ref
calls
This commit is contained in:
parent
9526c0c6e8
commit
79f6f11816
4 changed files with 35 additions and 20 deletions
|
@ -198,7 +198,7 @@ pub fn setup_constraining_predicates<'tcx>(
|
|||
// `<<T as Bar>::Baz as Iterator>::Output = <U as Iterator>::Output`
|
||||
// Then the projection only applies if `T` is known, but it still
|
||||
// does not determine `U`.
|
||||
let inputs = parameters_for(&projection.projection_ty.trait_ref(tcx), true);
|
||||
let inputs = parameters_for(&projection.projection_ty, true);
|
||||
let relies_only_on_inputs = inputs.iter().all(|p| input_parameters.contains(&p));
|
||||
if !relies_only_on_inputs {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue