Skip to content

Commit 13b474d

Browse files
committed
rm obsolete no-op lints
1 parent bb8ca1f commit 13b474d

File tree

11 files changed

+0
-37
lines changed

11 files changed

+0
-37
lines changed

src/etc/extract-tests.py

-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
if not re.search(r"\bextern mod extra\b", block):
6161
block = "extern mod extra;\n" + block
6262
block = """#[ forbid(ctypes) ];
63-
#[ forbid(deprecated_pattern) ];
64-
#[ forbid(implicit_copies) ];
65-
#[ forbid(non_implicitly_copyable_typarams) ];
6663
#[ forbid(path_statement) ];
6764
#[ forbid(type_limits) ];
6865
#[ forbid(unrecognized_lint) ];

src/etc/zsh/_rust

-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ _rustc_opts_switches=(
3333
)
3434
_rustc_opts_lint=(
3535
'path-statement[path statements with no effect]'
36-
'deprecated-pattern[warn about deprecated uses of pattern bindings]'
37-
'non-implicitly-copyable-typarams[passing non implicitly copyable types as copy type params]'
3836
'missing-trait-doc[detects missing documentation for traits]'
3937
'missing-struct-doc[detects missing documentation for structs]'
4038
'ctypes[proper use of core::libc types in foreign modules]'
41-
'implicit-copies[implicit copies of non implicitly copyable data]'
4239
"unused-mut[detect mut variables which don't need to be mutable]"
4340
'unused-imports[imports that are never used]'
4441
'heap-memory[use of any (~ type or @ type) heap memory]'

src/librustc/middle/lint.rs

-16
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ pub enum lint {
7474
unnecessary_qualification,
7575
while_true,
7676
path_statement,
77-
implicit_copies,
7877
unrecognized_lint,
79-
deprecated_pattern,
8078
non_camel_case_types,
8179
non_uppercase_statics,
8280
type_limits,
@@ -181,20 +179,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
181179
default: warn
182180
}),
183181

184-
("implicit_copies",
185-
LintSpec {
186-
lint: implicit_copies,
187-
desc: "implicit copies of non implicitly copyable data",
188-
default: warn
189-
}),
190-
191-
("deprecated_pattern",
192-
LintSpec {
193-
lint: deprecated_pattern,
194-
desc: "warn about deprecated uses of pattern bindings",
195-
default: allow
196-
}),
197-
198182
("non_camel_case_types",
199183
LintSpec {
200184
lint: non_camel_case_types,

src/librustc/rustc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#[license = "MIT/ASL2"];
1818
#[crate_type = "lib"];
1919

20-
#[deny(deprecated_pattern)];
21-
2220
extern mod extra;
2321
extern mod syntax;
2422

src/libstd/result.rs

-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ pub fn unwrap_err<T, U>(res: Result<T, U>) -> U {
396396
}
397397

398398
#[cfg(test)]
399-
#[allow(non_implicitly_copyable_typarams)]
400399
mod tests {
401400
use result::{Err, Ok, Result, chain, get, get_err};
402401
use result;

src/libstd/tuple.rs

-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ mod tests {
384384
}
385385
386386
#[test]
387-
#[allow(non_implicitly_copyable_typarams)]
388387
fn test_tuple() {
389388
assert_eq!((948, 4039.48).first(), 948);
390389
assert_eq!((34.5, ~"foo").second(), ~"foo");

src/libsyntax/syntax.rs

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#[license = "MIT/ASL2"];
2121
#[crate_type = "lib"];
2222

23-
#[deny(deprecated_pattern)];
24-
2523
extern mod extra;
2624

2725
pub mod util {

src/test/run-pass-fulldeps/quote-tokens.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(non_implicitly_copyable_typarams)];
12-
1311
extern mod syntax;
1412

1513
use syntax::ext::base::ExtCtxt;

src/test/run-pass/auto-encode.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
// xfail-test #6122
1414

15-
#[forbid(deprecated_pattern)];
16-
1715
extern mod extra;
1816

1917
// These tests used to be separate files, but I wanted to refactor all

src/test/run-pass/fixed_length_copy.rs

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
12-
// error on implicit copies to check fixed length vectors
13-
// are implicitly copyable
14-
#[deny(implicit_copies)]
1511
pub fn main() {
1612
let arr = [1,2,3];
1713
let arr2 = arr;

src/test/run-pass/issue-2550.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fn C(x: uint) -> C {
2121
fn f<T>(_x: T) {
2222
}
2323

24-
#[deny(non_implicitly_copyable_typarams)]
2524
pub fn main() {
2625
f(C(1u));
2726
}

0 commit comments

Comments
 (0)