Eliminate an "Extra scope required" obsoleted by NLL
This commit is contained in:
parent
d03b3db95b
commit
bd2b53ba6d
1 changed files with 48 additions and 52 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue