Skip to content

Turn on deprecation warning for renamed lints #18398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 31, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libarena/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
html_root_url = "http://doc.rust-lang.org/nightly/")]

#![feature(unsafe_destructor)]
#![allow(missing_doc)]
#![allow(missing_docs)]

use std::cell::{Cell, RefCell};
use std::cmp;
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/priority_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
//! }
//! ```

#![allow(missing_doc)]
#![allow(missing_docs)]

use core::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub use core::slice::{Found, NotFound};

// Functional utilities

#[allow(missing_doc)]
#[allow(missing_docs)]
pub trait VectorVector<T> {
// FIXME #5898: calling these .concat and .connect conflicts with
// StrVector::con{cat,nect}, since they have generic contents.
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/smallintmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! A simple map based on a vector for small integer keys. Space requirements
//! are O(highest integer key).

#![allow(missing_doc)]
#![allow(missing_docs)]

use core::prelude::*;

Expand Down
4 changes: 2 additions & 2 deletions src/libcore/failure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//! one function. Currently, the actual symbol is declared in the standard
//! library, but the location of this may change over time.

#![allow(dead_code, missing_doc)]
#![allow(dead_code, missing_docs)]

use fmt;
use intrinsics;
Expand Down Expand Up @@ -57,7 +57,7 @@ fn fail_bounds_check(file_line: &(&'static str, uint),

#[cold] #[inline(never)]
pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
#[allow(ctypes)]
#[allow(improper_ctypes)]
extern {
#[lang = "fail_fmt"]
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/fmt/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(missing_doc)]
#![allow(missing_docs)]

use char;
use collections::Collection;
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//! Utilities for formatting and printing strings

#![allow(unused_variable)]
#![allow(unused_variables)]

use any;
use cell::{Cell, Ref, RefMut};
Expand Down Expand Up @@ -733,7 +733,7 @@ macro_rules! tuple (
() => ();
( $($name:ident,)+ ) => (
impl<$($name:Show),*> Show for ($($name,)*) {
#[allow(non_snake_case, dead_assignment)]
#[allow(non_snake_case, unused_assignments)]
fn fmt(&self, f: &mut Formatter) -> Result {
try!(write!(f, "("));
let ($(ref $name,)*) = *self;
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// FIXME: #6220 Implement floating point formatting

#![allow(unsigned_negate)]
#![allow(unsigned_negation)]

use collections::Collection;
use fmt;
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A quick refresher on memory ordering:
*/

#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]

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

Expand Down
2 changes: 1 addition & 1 deletion src/libcore/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#![allow(unknown_features)]
#![feature(globs, intrinsics, lang_items, macro_rules, phase)]
#![feature(simd, unsafe_destructor, slicing_syntax)]
#![deny(missing_doc)]
#![deny(missing_docs)]

mod macros;

Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#![doc(primitive = "f32")]
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
#![allow(type_overflow)]
#![allow(overflowing_literals)]

use intrinsics;
use mem;
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#![doc(primitive = "f64")]
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
#![allow(type_overflow)]
#![allow(overflowing_literals)]

use intrinsics;
use mem;
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

//! Numeric traits and functions for generic mathematics

#![allow(missing_doc)]
#![allow(missing_docs)]

use intrinsics;
use {int, i8, i16, i32, i64};
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(missing_doc)]
#![allow(missing_docs)]
#![experimental]

//! Contains struct definitions for the layout of compiler built-in types.
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//! warning.

#![allow(non_camel_case_types)]
#![allow(missing_doc)]
#![allow(missing_docs)]

#[experimental]
#[simd]
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ Section: Comparing strings
/// to compare &[u8] byte slices that are not necessarily valid UTF-8.
#[inline]
fn eq_slice_(a: &str, b: &str) -> bool {
#[allow(ctypes)]
#[allow(improper_ctypes)]
extern { fn memcmp(s1: *const i8, s2: *const i8, n: uint) -> i32; }
a.len() == b.len() && unsafe {
memcmp(a.as_ptr() as *const i8,
Expand Down Expand Up @@ -1117,7 +1117,7 @@ pub mod raw {
Section: Trait implementations
*/

#[allow(missing_doc)]
#[allow(missing_docs)]
pub mod traits {
use cmp::{Ord, Ordering, Less, Equal, Greater, PartialEq, PartialOrd, Equiv, Eq};
use collections::Collection;
Expand Down
8 changes: 4 additions & 4 deletions src/libcore/tuple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ macro_rules! tuple_impls {
}
)+) => {
$(
#[allow(missing_doc)]
#[allow(missing_docs)]
#[stable]
pub trait $Tuple<$($T),+> {
$(
Expand All @@ -97,21 +97,21 @@ macro_rules! tuple_impls {
impl<$($T),+> $Tuple<$($T),+> for ($($T,)+) {
$(
#[inline]
#[allow(unused_variable)]
#[allow(unused_variables)]
#[unstable = "may rename pending accessor naming conventions"]
fn $valN(self) -> $T {
let ($($x,)+) = self; $ret
}

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

#[inline]
#[allow(unused_variable)]
#[allow(unused_variables)]
#[unstable = "may rename pending accessor naming conventions"]
fn $mutN<'a>(&'a mut self) -> &'a mut $T {
let ($(ref mut $x,)+) = *self; $ret
Expand Down
2 changes: 1 addition & 1 deletion src/libcoretest/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]

use core::fmt::radix;

Expand Down
4 changes: 2 additions & 2 deletions src/libgetopts/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
html_playground_url = "http://play.rust-lang.org/")]
#![feature(globs, phase)]
#![feature(import_shadowing)]
#![deny(missing_doc)]
#![deny(missing_docs)]

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

Expand Down Expand Up @@ -201,7 +201,7 @@ pub enum Fail_ {

/// The type of failure that occurred.
#[deriving(PartialEq, Eq)]
#[allow(missing_doc)]
#[allow(missing_docs)]
pub enum FailType {
ArgumentMissing_,
UnrecognizedOption_,
Expand Down
4 changes: 2 additions & 2 deletions src/liblibc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@

#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_uppercase_statics)]
#![allow(missing_doc)]
#![allow(non_upper_case_globals)]
#![allow(missing_docs)]
#![allow(non_snake_case)]

extern crate core;
Expand Down
2 changes: 1 addition & 1 deletion src/liblog/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
html_root_url = "http://doc.rust-lang.org/nightly/",
html_playground_url = "http://play.rust-lang.org/")]
#![feature(macro_rules)]
#![deny(missing_doc)]
#![deny(missing_docs)]

extern crate regex;

Expand Down
2 changes: 1 addition & 1 deletion src/libnative/io/c_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//! C definitions used by libnative that don't belong in liblibc

#![allow(type_overflow)]
#![allow(overflowing_literals)]

use libc;

Expand Down
2 changes: 1 addition & 1 deletion src/libnative/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://doc.rust-lang.org/nightly/")]

#![deny(unused_result, unused_must_use)]
#![deny(unused_results, unused_must_use)]
#![allow(non_camel_case_types)]
#![allow(unknown_features)]
#![feature(default_type_params, lang_items, slicing_syntax)]
Expand Down
2 changes: 1 addition & 1 deletion src/librand/isaac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl IsaacRng {

/// Refills the output buffer (`self.rsl`)
#[inline]
#[allow(unsigned_negate)]
#[allow(unsigned_negation)]
fn isaac(&mut self) {
self.c += 1;
// abbreviations
Expand Down
2 changes: 1 addition & 1 deletion src/librbml/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
html_playground_url = "http://play.rust-lang.org/")]
#![allow(unknown_features)]
#![feature(macro_rules, phase, slicing_syntax)]
#![allow(missing_doc)]
#![allow(missing_docs)]

extern crate serialize;

Expand Down
2 changes: 1 addition & 1 deletion src/libregex/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@

#![allow(unknown_features)]
#![feature(macro_rules, phase, slicing_syntax)]
#![deny(missing_doc)]
#![deny(missing_docs)]

#[cfg(test)]
extern crate "test" as stdtest;
Expand Down
4 changes: 2 additions & 2 deletions src/libregex_macros/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
}

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

// Sometimes `nlist` is never used (for empty regexes).
#[allow(unused_variable)]
#[allow(unused_variables)]
#[inline]
fn step(&self, groups: &mut Captures, nlist: &mut Threads,
caps: &mut Captures, pc: uint) -> StepState {
Expand Down
4 changes: 2 additions & 2 deletions src/librustc/driver/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub fn get_os(triple: &str) -> Option<abi::Os> {
}
None
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static os_names : &'static [(&'static str, abi::Os)] = &[
("mingw32", abi::OsWindows),
("win32", abi::OsWindows),
Expand All @@ -516,7 +516,7 @@ pub fn get_arch(triple: &str) -> Option<abi::Architecture> {
}
None
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static architecture_abis : &'static [(&'static str, abi::Architecture)] = &[
("i386", abi::X86),
("i486", abi::X86),
Expand Down
Loading