1
Fork 0

avoid .into() conversion to identical types

This commit is contained in:
Matthias Krüger 2022-12-18 15:01:26 +01:00
parent 35a99eef32
commit 0aa4cde747
11 changed files with 17 additions and 27 deletions

View file

@ -1920,7 +1920,7 @@ impl<'tcx> TypeTrace<'tcx> {
) -> TypeTrace<'tcx> {
TypeTrace {
cause: cause.clone(),
values: PolyTraitRefs(ExpectedFound::new(a_is_expected, a.into(), b.into())),
values: PolyTraitRefs(ExpectedFound::new(a_is_expected, a, b)),
}
}