Eliminate an "Extra scope required" obsoleted by NLL

This commit is contained in:
David Tolnay 2023-10-22 12:05:45 -07:00
parent d03b3db95b
commit bd2b53ba6d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -695,9 +695,6 @@ impl<'a> TraitDef<'a> {
}
}));
{
// Extra scope required here so ty_params goes out of scope before params is moved
let mut ty_params = params
.iter()
.filter(|param| matches!(param.kind, ast::GenericParamKind::Type { .. }))
@ -757,7 +754,6 @@ impl<'a> TraitDef<'a> {
}
}
}
}
let trait_generics = Generics { params, where_clause, span };