Skip to content

Commit 11012e1

Browse files
committed
---
yaml --- r: 164660 b: refs/heads/auto c: 5338222 h: refs/heads/master v: v3
1 parent f0987bb commit 11012e1

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a
13+
refs/heads/auto: 533822207fd3f34a3d45d99a0eece0112880a845
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)