Rollup merge of #107835 - tshepang:fmt, r=WaffleLapkin

use idiomatic formatting

Also, remove needless `else`
This commit is contained in:
Matthias Krüger 2023-02-09 11:21:59 +01:00 committed by GitHub
commit f2a2e298ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -803,7 +803,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
while let Some(arg) = walk.next() {
if arg == param_to_point_at {
return true;
} else if let ty::GenericArgKind::Type(ty) = arg.unpack()
}
if let ty::GenericArgKind::Type(ty) = arg.unpack()
&& let ty::Alias(ty::Projection, ..) = ty.kind()
{
// This logic may seem a bit strange, but typically when