Skip to content

Commit e0ad0fc

Browse files
committed
Update code with new lint names
1 parent 58dc0a0 commit e0ad0fc

File tree

178 files changed

+265
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+265
-265
lines changed

src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
html_root_url = "http://doc.rust-lang.org/nightly/")]
3030

3131
#![feature(unsafe_destructor)]
32-
#![allow(missing_doc)]
32+
#![allow(missing_docs)]
3333

3434
use std::cell::{Cell, RefCell};
3535
use std::cmp;

src/libcollections/priority_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
//! }
152152
//! ```
153153
154-
#![allow(missing_doc)]
154+
#![allow(missing_docs)]
155155

156156
use core::prelude::*;
157157

src/libcollections/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub use core::slice::{Found, NotFound};
108108

109109
// Functional utilities
110110

111-
#[allow(missing_doc)]
111+
#[allow(missing_docs)]
112112
pub trait VectorVector<T> {
113113
// FIXME #5898: calling these .concat and .connect conflicts with
114114
// StrVector::con{cat,nect}, since they have generic contents.

src/libcollections/smallintmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! A simple map based on a vector for small integer keys. Space requirements
1212
//! are O(highest integer key).
1313
14-
#![allow(missing_doc)]
14+
#![allow(missing_docs)]
1515

1616
use core::prelude::*;
1717

src/libcore/failure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! one function. Currently, the actual symbol is declared in the standard
2929
//! library, but the location of this may change over time.
3030
31-
#![allow(dead_code, missing_doc)]
31+
#![allow(dead_code, missing_docs)]
3232

3333
use fmt;
3434
use intrinsics;
@@ -57,7 +57,7 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
5757

5858
#[cold] #[inline(never)]
5959
pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
60-
#[allow(ctypes)]
60+
#[allow(improper_ctypes)]
6161
extern {
6262
#[lang = "fail_fmt"]
6363
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,

src/libcore/fmt/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(missing_doc)]
11+
#![allow(missing_docs)]
1212

1313
use char;
1414
use collections::Collection;

src/libcore/fmt/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Utilities for formatting and printing strings
1212
13-
#![allow(unused_variable)]
13+
#![allow(unused_variables)]
1414

1515
use any;
1616
use cell::{Cell, Ref, RefMut};
@@ -733,7 +733,7 @@ macro_rules! tuple (
733733
() => ();
734734
( $($name:ident,)+ ) => (
735735
impl<$($name:Show),*> Show for ($($name,)*) {
736-
#[allow(non_snake_case, dead_assignment)]
736+
#[allow(non_snake_case, unused_assignments)]
737737
fn fmt(&self, f: &mut Formatter) -> Result {
738738
try!(write!(f, "("));
739739
let ($(ref $name,)*) = *self;

src/libcore/fmt/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
// FIXME: #6220 Implement floating point formatting
1414

15-
#![allow(unsigned_negate)]
15+
#![allow(unsigned_negation)]
1616

1717
use collections::Collection;
1818
use fmt;

src/libcore/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ A quick refresher on memory ordering:
4242
*/
4343

4444
#![experimental]
45-
#![allow(missing_doc)]
45+
#![allow(missing_docs)]
4646

4747
pub type GlueFn = extern "Rust" fn(*const i8);
4848

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#![allow(unknown_features)]
6161
#![feature(globs, intrinsics, lang_items, macro_rules, phase)]
6262
#![feature(simd, unsafe_destructor, slicing_syntax)]
63-
#![deny(missing_doc)]
63+
#![deny(missing_docs)]
6464

6565
mod macros;
6666

src/libcore/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
#![doc(primitive = "f32")]
1414
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
15-
#![allow(type_overflow)]
15+
#![allow(overflowing_literals)]
1616

1717
use intrinsics;
1818
use mem;

src/libcore/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
#![doc(primitive = "f64")]
1414
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
15-
#![allow(type_overflow)]
15+
#![allow(overflowing_literals)]
1616

1717
use intrinsics;
1818
use mem;

src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
//! Numeric traits and functions for generic mathematics
1414
15-
#![allow(missing_doc)]
15+
#![allow(missing_docs)]
1616

1717
use intrinsics;
1818
use {int, i8, i16, i32, i64};

src/libcore/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(missing_doc)]
11+
#![allow(missing_docs)]
1212
#![experimental]
1313

1414
//! Contains struct definitions for the layout of compiler built-in types.

src/libcore/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//! warning.
3636
3737
#![allow(non_camel_case_types)]
38-
#![allow(missing_doc)]
38+
#![allow(missing_docs)]
3939

4040
#[experimental]
4141
#[simd]

src/libcore/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ Section: Comparing strings
767767
/// to compare &[u8] byte slices that are not necessarily valid UTF-8.
768768
#[inline]
769769
fn eq_slice_(a: &str, b: &str) -> bool {
770-
#[allow(ctypes)]
770+
#[allow(improper_ctypes)]
771771
extern { fn memcmp(s1: *const i8, s2: *const i8, n: uint) -> i32; }
772772
a.len() == b.len() && unsafe {
773773
memcmp(a.as_ptr() as *const i8,
@@ -1117,7 +1117,7 @@ pub mod raw {
11171117
Section: Trait implementations
11181118
*/
11191119

1120-
#[allow(missing_doc)]
1120+
#[allow(missing_docs)]
11211121
pub mod traits {
11221122
use cmp::{Ord, Ordering, Less, Equal, Greater, PartialEq, PartialOrd, Equiv, Eq};
11231123
use collections::Collection;

src/libcore/tuple/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ macro_rules! tuple_impls {
8181
}
8282
)+) => {
8383
$(
84-
#[allow(missing_doc)]
84+
#[allow(missing_docs)]
8585
#[stable]
8686
pub trait $Tuple<$($T),+> {
8787
$(
@@ -97,21 +97,21 @@ macro_rules! tuple_impls {
9797
impl<$($T),+> $Tuple<$($T),+> for ($($T,)+) {
9898
$(
9999
#[inline]
100-
#[allow(unused_variable)]
100+
#[allow(unused_variables)]
101101
#[unstable = "may rename pending accessor naming conventions"]
102102
fn $valN(self) -> $T {
103103
let ($($x,)+) = self; $ret
104104
}
105105

106106
#[inline]
107-
#[allow(unused_variable)]
107+
#[allow(unused_variables)]
108108
#[unstable = "may rename pending accessor naming conventions"]
109109
fn $refN<'a>(&'a self) -> &'a $T {
110110
let ($(ref $x,)+) = *self; $ret
111111
}
112112

113113
#[inline]
114-
#[allow(unused_variable)]
114+
#[allow(unused_variables)]
115115
#[unstable = "may rename pending accessor naming conventions"]
116116
fn $mutN<'a>(&'a mut self) -> &'a mut $T {
117117
let ($(ref mut $x,)+) = *self; $ret

src/libcoretest/fmt/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
#![allow(unsigned_negate)]
10+
#![allow(unsigned_negation)]
1111

1212
use core::fmt::radix;
1313

src/libgetopts/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
html_playground_url = "http://play.rust-lang.org/")]
9090
#![feature(globs, phase)]
9191
#![feature(import_shadowing)]
92-
#![deny(missing_doc)]
92+
#![deny(missing_docs)]
9393

9494
#[cfg(test)] #[phase(plugin, link)] extern crate log;
9595

@@ -201,7 +201,7 @@ pub enum Fail_ {
201201

202202
/// The type of failure that occurred.
203203
#[deriving(PartialEq, Eq)]
204-
#[allow(missing_doc)]
204+
#[allow(missing_docs)]
205205
pub enum FailType {
206206
ArgumentMissing_,
207207
UnrecognizedOption_,

src/liblibc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575

7676
#![allow(non_camel_case_types)]
7777
#![allow(non_snake_case)]
78-
#![allow(non_uppercase_statics)]
79-
#![allow(missing_doc)]
78+
#![allow(non_upper_case_globals)]
79+
#![allow(missing_docs)]
8080
#![allow(non_snake_case)]
8181

8282
extern crate core;

src/liblog/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
html_root_url = "http://doc.rust-lang.org/nightly/",
168168
html_playground_url = "http://play.rust-lang.org/")]
169169
#![feature(macro_rules)]
170-
#![deny(missing_doc)]
170+
#![deny(missing_docs)]
171171

172172
extern crate regex;
173173

src/libnative/io/c_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! C definitions used by libnative that don't belong in liblibc
1212
13-
#![allow(type_overflow)]
13+
#![allow(overflowing_literals)]
1414

1515
use libc;
1616

src/libnative/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
5656
html_root_url = "http://doc.rust-lang.org/nightly/")]
5757

58-
#![deny(unused_result, unused_must_use)]
58+
#![deny(unused_results, unused_must_use)]
5959
#![allow(non_camel_case_types)]
6060
#![allow(unknown_features)]
6161
#![feature(default_type_params, lang_items, slicing_syntax)]

src/librand/isaac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl IsaacRng {
118118

119119
/// Refills the output buffer (`self.rsl`)
120120
#[inline]
121-
#[allow(unsigned_negate)]
121+
#[allow(unsigned_negation)]
122122
fn isaac(&mut self) {
123123
self.c += 1;
124124
// abbreviations

src/librbml/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
html_playground_url = "http://play.rust-lang.org/")]
2727
#![allow(unknown_features)]
2828
#![feature(macro_rules, phase, slicing_syntax)]
29-
#![allow(missing_doc)]
29+
#![allow(missing_docs)]
3030

3131
extern crate serialize;
3232

src/libregex/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370

371371
#![allow(unknown_features)]
372372
#![feature(macro_rules, phase, slicing_syntax)]
373-
#![deny(missing_doc)]
373+
#![deny(missing_docs)]
374374

375375
#[cfg(test)]
376376
extern crate "test" as stdtest;

src/libregex_macros/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
179179
}
180180

181181
impl<'t> Nfa<'t> {
182-
#[allow(unused_variable)]
182+
#[allow(unused_variables)]
183183
fn run(&mut self, start: uint, end: uint) -> Vec<Option<uint>> {
184184
let mut matched = false;
185185
let prefix_bytes: &[u8] = $prefix_bytes;
@@ -226,7 +226,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
226226
}
227227

228228
// Sometimes `nlist` is never used (for empty regexes).
229-
#[allow(unused_variable)]
229+
#[allow(unused_variables)]
230230
#[inline]
231231
fn step(&self, groups: &mut Captures, nlist: &mut Threads,
232232
caps: &mut Captures, pc: uint) -> StepState {

src/librustc/driver/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ pub fn get_os(triple: &str) -> Option<abi::Os> {
498498
}
499499
None
500500
}
501-
#[allow(non_uppercase_statics)]
501+
#[allow(non_upper_case_globals)]
502502
static os_names : &'static [(&'static str, abi::Os)] = &[
503503
("mingw32", abi::OsWindows),
504504
("win32", abi::OsWindows),
@@ -516,7 +516,7 @@ pub fn get_arch(triple: &str) -> Option<abi::Architecture> {
516516
}
517517
None
518518
}
519-
#[allow(non_uppercase_statics)]
519+
#[allow(non_upper_case_globals)]
520520
static architecture_abis : &'static [(&'static str, abi::Architecture)] = &[
521521
("i386", abi::X86),
522522
("i486", abi::X86),

0 commit comments

Comments
 (0)