Skip to content

Commit f69ce16

Browse files
committed
switch bodies to a btreemap
1 parent 538556d commit f69ce16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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;
@@ -77,7 +77,7 @@ pub struct LoweringContext<'a> {
7777

7878
trait_items: BTreeMap<hir::TraitItemId, hir::TraitItem>,
7979
impl_items: BTreeMap<hir::ImplItemId, hir::ImplItem>,
80-
bodies: FxHashMap<hir::BodyId, hir::Body>,
80+
bodies: BTreeMap<hir::BodyId, hir::Body>,
8181

8282
type_def_lifetime_params: DefIdMap<usize>,
8383
}
@@ -111,7 +111,7 @@ pub fn lower_crate(sess: &Session,
111111
items: BTreeMap::new(),
112112
trait_items: BTreeMap::new(),
113113
impl_items: BTreeMap::new(),
114-
bodies: FxHashMap(),
114+
bodies: BTreeMap::new(),
115115
type_def_lifetime_params: DefIdMap(),
116116
}.lower_crate(krate)
117117
}

src/librustc/hir/mod.rs

Lines changed: 2 additions & 2 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,7 +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>,
412+
pub bodies: BTreeMap<BodyId, Body>,
413413
}
414414

415415
impl Crate {

0 commit comments

Comments
 (0)