Skip to content

Commit 002bcf6

Browse files
committed
---
yaml --- r: 163687 b: refs/heads/snap-stage3 c: 5338222 h: refs/heads/master i: 163685: 3771b90 163683: bd81f1b 163679: 77db970 v: v3
1 parent 9b75bfe commit 002bcf6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a
4+
refs/heads/snap-stage3: 533822207fd3f34a3d45d99a0eece0112880a845
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustc/middle/resolve.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(non_camel_case_types)]
12-
1311
pub use self::PrivateDep::*;
1412
pub use self::ImportUse::*;
1513
pub use self::TraitItemKind::*;
@@ -90,13 +88,13 @@ use std::uint;
9088
pub type DefMap = RefCell<NodeMap<Def>>;
9189

9290
#[deriving(Copy)]
93-
struct binding_info {
91+
struct BindingInfo {
9492
span: Span,
9593
binding_mode: BindingMode,
9694
}
9795

9896
// Map from the name in a pattern to its binding mode.
99-
type BindingMap = HashMap<Name,binding_info>;
97+
type BindingMap = HashMap<Name, BindingInfo>;
10098

10199
// Trait method resolution
102100
pub type TraitMap = NodeMap<Vec<DefId> >;
@@ -4809,9 +4807,10 @@ impl<'a> Resolver<'a> {
48094807
let mut result = HashMap::new();
48104808
pat_bindings(&self.def_map, pat, |binding_mode, _id, sp, path1| {
48114809
let name = mtwt::resolve(path1.node);
4812-
result.insert(name,
4813-
binding_info {span: sp,
4814-
binding_mode: binding_mode});
4810+
result.insert(name, BindingInfo {
4811+
span: sp,
4812+
binding_mode: binding_mode
4813+
});
48154814
});
48164815
return result;
48174816
}

0 commit comments

Comments
 (0)