mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Eliminate an "Extra scope required" obsoleted by NLL
This commit is contained in:
parent
d03b3db95b
commit
bd2b53ba6d
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user