about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authormr.Shu <mr@shu.io>2014-02-10 15:36:31 +0100
committermr.Shu <mr@shu.io>2014-02-21 08:11:52 +0100
commit70319f7b25e53d886cf15a33d2edb5220b1f736b (patch)
treefb1c802cf0dda90bf3895bf84ff14cf4af5da8d5 /src/libnative
parentd70f909fa3bdc1c8231f127882cc30f274b263d1 (diff)
downloadrust-70319f7b25e53d886cf15a33d2edb5220b1f736b.tar.gz
rust-70319f7b25e53d886cf15a33d2edb5220b1f736b.zip
Changed NonCamelCaseTypes lint to warn by default
Added allow(non_camel_case_types) to librustc where necesary

Tried to fix problems with non_camel_case_types outside rustc

fixed failing tests

Docs updated

Moved #[allow(non_camel_case_types)] a level higher.

markdown.rs reverted

Fixed timer that was failing tests

Fixed another timer
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/file.rs4
-rw-r--r--src/libnative/io/net.rs4
-rw-r--r--src/libnative/io/timer_helper.rs5
-rw-r--r--src/libnative/io/timer_other.rs2
-rw-r--r--src/libnative/io/timer_timerfd.rs4
5 files changed, 15 insertions, 4 deletions
diff --git a/src/libnative/io/file.rs b/src/libnative/io/file.rs
index 6d3a156a2b0..d1d2dba383d 100644
--- a/src/libnative/io/file.rs
+++ b/src/libnative/io/file.rs
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,6 +10,8 @@
 
 //! Blocking posix-based file I/O
 
+#[allow(non_camel_case_types)];
+
 use std::sync::arc::UnsafeArc;
 use std::c_str::CString;
 use std::io::IoError;
diff --git a/src/libnative/io/net.rs b/src/libnative/io/net.rs
index b33b54862dc..d58e4d54342 100644
--- a/src/libnative/io/net.rs
+++ b/src/libnative/io/net.rs
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[allow(non_camel_case_types)];
+
 use std::cast;
 use std::io::net::ip;
 use std::io;
diff --git a/src/libnative/io/timer_helper.rs b/src/libnative/io/timer_helper.rs
index 004cd6f3114..0f3ed148229 100644
--- a/src/libnative/io/timer_helper.rs
+++ b/src/libnative/io/timer_helper.rs
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -20,6 +20,8 @@
 //! can be created in the future and there must be no active timers at that
 //! time.
 
+#[allow(non_camel_case_types)];
+
 use std::cast;
 use std::rt;
 use std::unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
@@ -98,6 +100,7 @@ mod imp {
 
     use io::file::FileDesc;
 
+    #[allow(non_camel_case_types)]
     pub type signal = libc::c_int;
 
     pub fn new() -> (signal, signal) {
diff --git a/src/libnative/io/timer_other.rs b/src/libnative/io/timer_other.rs
index e20c017c4b5..3a060194a69 100644
--- a/src/libnative/io/timer_other.rs
+++ b/src/libnative/io/timer_other.rs
@@ -46,6 +46,8 @@
 //!
 //! Note that all time units in this file are in *milliseconds*.
 
+#[allow(non_camel_case_types)];
+
 use std::comm::Data;
 use std::hashmap::HashMap;
 use std::libc;
diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs
index 434794e32cb..b1ae5820888 100644
--- a/src/libnative/io/timer_timerfd.rs
+++ b/src/libnative/io/timer_timerfd.rs
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -28,6 +28,8 @@
 //!
 //! As with timer_other, all units in this file are in units of millseconds.
 
+#[allow(non_camel_case_types)];
+
 use std::comm::Data;
 use std::libc;
 use std::ptr;