Skip to content

Commit

Permalink
Merge pull request rust-lang#7936 from thestinger/cleanup
Browse files Browse the repository at this point in the history
rm obsolete no-op lints
  • Loading branch information
thestinger committed Jul 22, 2013
2 parents fe3f75f + 13b474d commit fc05819
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 37 deletions.
3 changes: 0 additions & 3 deletions src/etc/extract-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
if not re.search(r"\bextern mod extra\b", block):
block = "extern mod extra;\n" + block
block = """#[ forbid(ctypes) ];
#[ forbid(deprecated_pattern) ];
#[ forbid(implicit_copies) ];
#[ forbid(non_implicitly_copyable_typarams) ];
#[ forbid(path_statement) ];
#[ forbid(type_limits) ];
#[ forbid(unrecognized_lint) ];
Expand Down
3 changes: 0 additions & 3 deletions src/etc/zsh/_rust
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ _rustc_opts_switches=(
)
_rustc_opts_lint=(
'path-statement[path statements with no effect]'
'deprecated-pattern[warn about deprecated uses of pattern bindings]'
'non-implicitly-copyable-typarams[passing non implicitly copyable types as copy type params]'
'missing-trait-doc[detects missing documentation for traits]'
'missing-struct-doc[detects missing documentation for structs]'
'ctypes[proper use of core::libc types in foreign modules]'
'implicit-copies[implicit copies of non implicitly copyable data]'
"unused-mut[detect mut variables which don't need to be mutable]"
'unused-imports[imports that are never used]'
'heap-memory[use of any (~ type or @ type) heap memory]'
Expand Down
16 changes: 0 additions & 16 deletions src/librustc/middle/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ pub enum lint {
unnecessary_qualification,
while_true,
path_statement,
implicit_copies,
unrecognized_lint,
deprecated_pattern,
non_camel_case_types,
non_uppercase_statics,
type_limits,
Expand Down Expand Up @@ -182,20 +180,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
default: warn
}),

("implicit_copies",
LintSpec {
lint: implicit_copies,
desc: "implicit copies of non implicitly copyable data",
default: warn
}),

("deprecated_pattern",
LintSpec {
lint: deprecated_pattern,
desc: "warn about deprecated uses of pattern bindings",
default: allow
}),

("non_camel_case_types",
LintSpec {
lint: non_camel_case_types,
Expand Down
2 changes: 0 additions & 2 deletions src/librustc/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#[license = "MIT/ASL2"];
#[crate_type = "lib"];

#[deny(deprecated_pattern)];

extern mod extra;
extern mod syntax;

Expand Down
1 change: 0 additions & 1 deletion src/libstd/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ pub fn unwrap_err<T, U>(res: Result<T, U>) -> U {
}

#[cfg(test)]
#[allow(non_implicitly_copyable_typarams)]
mod tests {
use result::{Err, Ok, Result, chain, get, get_err};
use result;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ mod tests {
}
#[test]
#[allow(non_implicitly_copyable_typarams)]
fn test_tuple() {
assert_eq!((948, 4039.48).first(), 948);
assert_eq!((34.5, ~"foo").second(), ~"foo");
Expand Down
2 changes: 0 additions & 2 deletions src/libsyntax/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#[license = "MIT/ASL2"];
#[crate_type = "lib"];

#[deny(deprecated_pattern)];

extern mod extra;

pub mod util {
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass-fulldeps/quote-tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[allow(non_implicitly_copyable_typarams)];

extern mod syntax;

use syntax::ext::base::ExtCtxt;
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/auto-encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

// xfail-test #6122

#[forbid(deprecated_pattern)];

extern mod extra;

// These tests used to be separate files, but I wanted to refactor all
Expand Down
4 changes: 0 additions & 4 deletions src/test/run-pass/fixed_length_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.


// error on implicit copies to check fixed length vectors
// are implicitly copyable
#[deny(implicit_copies)]
pub fn main() {
let arr = [1,2,3];
let arr2 = arr;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/issue-2550.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ fn C(x: uint) -> C {
fn f<T>(_x: T) {
}

#[deny(non_implicitly_copyable_typarams)]
pub fn main() {
f(C(1u));
}

0 comments on commit fc05819

Please sign in to comment.