about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-12-18 19:17:41 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-12-20 07:11:03 +0200
commit533822207fd3f34a3d45d99a0eece0112880a845 (patch)
tree3bb0c83fe49ffcd850add05024b772c3b0a8dc37
parent1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a (diff)
downloadrust-533822207fd3f34a3d45d99a0eece0112880a845.tar.gz
rust-533822207fd3f34a3d45d99a0eece0112880a845.zip
rustc: don't allow(non_camel_case_types) in resolve.
-rw-r--r--src/librustc/middle/resolve.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/librustc/middle/resolve.rs b/src/librustc/middle/resolve.rs
index e1e376c537c..49a8facffd2 100644
--- a/src/librustc/middle/resolve.rs
+++ b/src/librustc/middle/resolve.rs
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![allow(non_camel_case_types)]
-
 pub use self::PrivateDep::*;
 pub use self::ImportUse::*;
 pub use self::TraitItemKind::*;
@@ -90,13 +88,13 @@ use std::uint;
 pub type DefMap = RefCell<NodeMap<Def>>;
 
 #[deriving(Copy)]
-struct binding_info {
+struct BindingInfo {
     span: Span,
     binding_mode: BindingMode,
 }
 
 // Map from the name in a pattern to its binding mode.
-type BindingMap = HashMap<Name,binding_info>;
+type BindingMap = HashMap<Name, BindingInfo>;
 
 // Trait method resolution
 pub type TraitMap = NodeMap<Vec<DefId> >;
@@ -4809,9 +4807,10 @@ impl<'a> Resolver<'a> {
         let mut result = HashMap::new();
         pat_bindings(&self.def_map, pat, |binding_mode, _id, sp, path1| {
             let name = mtwt::resolve(path1.node);
-            result.insert(name,
-                          binding_info {span: sp,
-                                        binding_mode: binding_mode});
+            result.insert(name, BindingInfo {
+                span: sp,
+                binding_mode: binding_mode
+            });
         });
         return result;
     }