|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
11 |
| -#![allow(non_camel_case_types)] |
12 |
| - |
13 | 11 | pub use self::PrivateDep::*;
|
14 | 12 | pub use self::ImportUse::*;
|
15 | 13 | pub use self::TraitItemKind::*;
|
@@ -90,13 +88,13 @@ use std::uint;
|
90 | 88 | pub type DefMap = RefCell<NodeMap<Def>>;
|
91 | 89 |
|
92 | 90 | #[deriving(Copy)]
|
93 |
| -struct binding_info { |
| 91 | +struct BindingInfo { |
94 | 92 | span: Span,
|
95 | 93 | binding_mode: BindingMode,
|
96 | 94 | }
|
97 | 95 |
|
98 | 96 | // Map from the name in a pattern to its binding mode.
|
99 |
| -type BindingMap = HashMap<Name,binding_info>; |
| 97 | +type BindingMap = HashMap<Name, BindingInfo>; |
100 | 98 |
|
101 | 99 | // Trait method resolution
|
102 | 100 | pub type TraitMap = NodeMap<Vec<DefId> >;
|
@@ -4809,9 +4807,10 @@ impl<'a> Resolver<'a> {
|
4809 | 4807 | let mut result = HashMap::new();
|
4810 | 4808 | pat_bindings(&self.def_map, pat, |binding_mode, _id, sp, path1| {
|
4811 | 4809 | 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 | + }); |
4815 | 4814 | });
|
4816 | 4815 | return result;
|
4817 | 4816 | }
|
|
0 commit comments