rustc: Remove deprecated lint names

These were all renamed quite some time ago, so remove their old names from the
compiler.
This commit is contained in:
Alex Crichton 2015-01-20 11:20:22 -08:00
parent 953f294ea3
commit 64914d9d39
6 changed files with 6 additions and 45 deletions

View file

@ -1,16 +0,0 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <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.
// Check that lint deprecation works
#[deny(unused_variable)] //~ warning: lint unused_variable has been renamed to unused_variables
pub fn main() {
let x = 0u8; //~ error: unused variable:
}

View file

@ -10,7 +10,7 @@
#![allow(dead_code)]
// compile-flags: -D type-limits
// compile-flags: -D unused-comparisons
fn main() { }
fn foo() {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: -D path-statement
// compile-flags: -D path-statements
fn main() {
let x = 10is;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags:--crate-name crate-name-attr-used -F unused-attribute
// compile-flags:--crate-name crate-name-attr-used -F unused-attributes
#![crate_name = "crate-name-attr-used"]

View file

@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags:-D ctypes
// compile-flags:-D improper-ctypes
#![allow(ctypes)]
#![allow(improper_ctypes)]
mod libc {
extern {