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
This commit is contained in:
parent
d70f909fa3
commit
70319f7b25
42 changed files with 122 additions and 68 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue