Skip to content

Commit

Permalink
middle: use ItemLocal map aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Jan 8, 2019
1 parent 9012e56 commit a82a741
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc/middle/resolve_lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use hir::def::Def;
use hir::def_id::{CrateNum, DefId, LocalDefId, LOCAL_CRATE};
use hir::map::Map;
use hir::{GenericArg, GenericParam, ItemLocalId, LifetimeName, Node, ParamName};
use hir::{GenericArg, GenericParam, LifetimeName, Node, ParamName};
use ty::{self, DefIdTree, GenericParamDefKind, TyCtxt};

use errors::{Applicability, DiagnosticBuilder};
Expand All @@ -23,7 +23,7 @@ use syntax::attr;
use syntax::ptr::P;
use syntax::symbol::keywords;
use syntax_pos::Span;
use util::nodemap::{DefIdMap, FxHashMap, FxHashSet, HirIdMap, HirIdSet};
use util::nodemap::{DefIdMap, FxHashMap, FxHashSet, HirIdMap, HirIdSet, ItemLocalMap, ItemLocalSet};

use hir::intravisit::{self, NestedVisitorMap, Visitor};
use hir::{self, GenericParamKind, LifetimeParamKind};
Expand Down Expand Up @@ -210,10 +210,10 @@ struct NamedRegionMap {
/// See `NamedRegionMap`.
#[derive(Default)]
pub struct ResolveLifetimes {
defs: FxHashMap<LocalDefId, Lrc<FxHashMap<ItemLocalId, Region>>>,
late_bound: FxHashMap<LocalDefId, Lrc<FxHashSet<ItemLocalId>>>,
defs: FxHashMap<LocalDefId, Lrc<ItemLocalMap<Region>>>,
late_bound: FxHashMap<LocalDefId, Lrc<ItemLocalSet>>,
object_lifetime_defaults:
FxHashMap<LocalDefId, Lrc<FxHashMap<ItemLocalId, Lrc<Vec<ObjectLifetimeDefault>>>>>,
FxHashMap<LocalDefId, Lrc<ItemLocalMap<Lrc<Vec<ObjectLifetimeDefault>>>>>,
}

impl_stable_hash_for!(struct ::middle::resolve_lifetime::ResolveLifetimes {
Expand Down

0 comments on commit a82a741

Please sign in to comment.