1
Fork 0

ValuePairs::PolyTraitRefs should be called 'trait'

This commit is contained in:
Michael Goulet 2022-06-11 16:25:35 -07:00
parent fa68e73e99
commit acab4464f6
10 changed files with 31 additions and 29 deletions

View file

@ -1588,7 +1588,9 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
Mismatch::Variable(infer::ExpectedFound { expected, found }),
)
}
ValuePairs::TraitRefs(_) => (false, Mismatch::Fixed("trait")),
ValuePairs::TraitRefs(_) | ValuePairs::PolyTraitRefs(_) => {
(false, Mismatch::Fixed("trait"))
}
_ => (false, Mismatch::Fixed("type")),
};
let vals = match self.values_str(values) {