Simplified name mapping in auto trait handling.
This commit is contained in:
parent
d101753cd8
commit
388defad2d
2 changed files with 4 additions and 6 deletions
|
@ -290,7 +290,7 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
|
|||
let names_map =
|
||||
info.names_map
|
||||
.drain()
|
||||
.map(|(name, lifetime)| (name, Lifetime(lifetime)))
|
||||
.map(|name| (name.clone(), Lifetime(name)))
|
||||
.collect();
|
||||
let lifetime_predicates =
|
||||
self.handle_lifetimes(®ion_data, &names_map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue