diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-03 09:27:20 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-03 09:27:20 +0100 |
| commit | 2961937a317ac04382c1dbcdccb7f47b3c3acb27 (patch) | |
| tree | 824dd8b21d3696ec427d790f334f63b542ddfd40 /src/librustc/util | |
| parent | 2379faa933923a97158a4939b9fc82dcbd45430f (diff) | |
| download | rust-2961937a317ac04382c1dbcdccb7f47b3c3acb27.tar.gz rust-2961937a317ac04382c1dbcdccb7f47b3c3acb27.zip | |
Use a `Set<T>` instead of a `Map<T, bool>`
Diffstat (limited to 'src/librustc/util')
| -rw-r--r-- | src/librustc/util/nodemap.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/util/nodemap.rs b/src/librustc/util/nodemap.rs index c397371c5c7..674f67d5cd2 100644 --- a/src/librustc/util/nodemap.rs +++ b/src/librustc/util/nodemap.rs @@ -25,10 +25,12 @@ pub type ItemLocalMap<T> = FxHashMap<ItemLocalId, T>; pub type NodeSet = FxHashSet<ast::NodeId>; pub type DefIdSet = FxHashSet<DefId>; +pub type ItemLocalSet = FxHashSet<ItemLocalId>; pub fn NodeMap<T>() -> NodeMap<T> { FxHashMap() } pub fn DefIdMap<T>() -> DefIdMap<T> { FxHashMap() } pub fn ItemLocalMap<T>() -> ItemLocalMap<T> { FxHashMap() } pub fn NodeSet() -> NodeSet { FxHashSet() } pub fn DefIdSet() -> DefIdSet { FxHashSet() } +pub fn ItemLocalSet() -> ItemLocalSet { FxHashSet() } |
