mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Rollup merge of #107835 - tshepang:fmt, r=WaffleLapkin
use idiomatic formatting Also, remove needless `else`
This commit is contained in:
commit
f2a2e298ba
@ -803,7 +803,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||||||
while let Some(arg) = walk.next() {
|
while let Some(arg) = walk.next() {
|
||||||
if arg == param_to_point_at {
|
if arg == param_to_point_at {
|
||||||
return true;
|
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()
|
&& let ty::Alias(ty::Projection, ..) = ty.kind()
|
||||||
{
|
{
|
||||||
// This logic may seem a bit strange, but typically when
|
// This logic may seem a bit strange, but typically when
|
||||||
|
Loading…
Reference in New Issue
Block a user