Skip to content

Commit 1bb1e16

Browse files
committed
switch bodies to a btreemap
1 parent 2b5c026 commit 1bb1e16

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/librustc/hir/lowering.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use hir::map::definitions::DefPathData;
4646
use hir::def_id::{DefIndex, DefId};
4747
use hir::def::{Def, PathResolution};
4848
use session::Session;
49-
use util::nodemap::{DefIdMap, NodeMap, FxHashMap};
49+
use util::nodemap::{DefIdMap, NodeMap};
5050

5151
use std::collections::BTreeMap;
5252
use std::iter;
@@ -78,7 +78,7 @@ pub struct LoweringContext<'a> {
7878

7979
trait_items: BTreeMap<hir::TraitItemId, hir::TraitItem>,
8080
impl_items: BTreeMap<hir::ImplItemId, hir::ImplItem>,
81-
bodies: FxHashMap<hir::BodyId, hir::Body>,
81+
bodies: BTreeMap<hir::BodyId, hir::Body>,
8282

8383
trait_impls: BTreeMap<DefId, Vec<NodeId>>,
8484
trait_default_impl: BTreeMap<DefId, NodeId>,
@@ -118,7 +118,7 @@ pub fn lower_crate(sess: &Session,
118118
items: BTreeMap::new(),
119119
trait_items: BTreeMap::new(),
120120
impl_items: BTreeMap::new(),
121-
bodies: FxHashMap(),
121+
bodies: BTreeMap::new(),
122122
trait_impls: BTreeMap::new(),
123123
trait_default_impl: BTreeMap::new(),
124124
loop_scopes: Vec::new(),

src/librustc/hir/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub use self::PathParameters::*;
3131

3232
use hir::def::Def;
3333
use hir::def_id::DefId;
34-
use util::nodemap::{NodeMap, FxHashMap, FxHashSet};
34+
use util::nodemap::{NodeMap, FxHashSet};
3535

3636
use syntax_pos::{Span, ExpnId, DUMMY_SP};
3737
use syntax::codemap::{self, Spanned};
@@ -409,8 +409,7 @@ pub struct Crate {
409409

410410
pub trait_items: BTreeMap<TraitItemId, TraitItem>,
411411
pub impl_items: BTreeMap<ImplItemId, ImplItem>,
412-
pub bodies: FxHashMap<BodyId, Body>,
413-
412+
pub bodies: BTreeMap<BodyId, Body>,
414413
pub trait_impls: BTreeMap<DefId, Vec<NodeId>>,
415414
pub trait_default_impl: BTreeMap<DefId, NodeId>,
416415
}

0 commit comments

Comments
 (0)