diff options
| author | bors <bors@rust-lang.org> | 2013-11-25 21:47:16 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-25 21:47:16 -0800 |
| commit | c6a87c27214142b1eac2bf21785fe5b7e885ee5c (patch) | |
| tree | d282ff131856e0d8d75bf2794bc4a11278a0d8c8 /src/libstd | |
| parent | 720bcd81de9d5fbdb60761fc929d40e487005722 (diff) | |
| parent | fa2077af990dbcd71c0e5682ae9207c71485d384 (diff) | |
| download | rust-c6a87c27214142b1eac2bf21785fe5b7e885ee5c.tar.gz rust-c6a87c27214142b1eac2bf21785fe5b7e885ee5c.zip | |
auto merge of #10316 : klutzy/rust/attr-lint, r=cmr
This patchset makes warning if crate-level attribute is used at other places, obsolete attributed is used, or unknown attribute is used, since they are usually from mistakes. Closes #3348
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/cell.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/native/process.rs | 1 | ||||
| -rw-r--r-- | src/libstd/vec.rs | 4 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/libstd/cell.rs b/src/libstd/cell.rs index 019cd53be55..e49cf3e5303 100644 --- a/src/libstd/cell.rs +++ b/src/libstd/cell.rs @@ -10,8 +10,6 @@ //! Types dealing with dynamic mutability -#[missing_doc]; - use prelude::*; use cast; use util::NonCopyable; diff --git a/src/libstd/io/native/process.rs b/src/libstd/io/native/process.rs index 6aa3ae65fc9..292b0a2e78f 100644 --- a/src/libstd/io/native/process.rs +++ b/src/libstd/io/native/process.rs @@ -365,7 +365,6 @@ fn spawn_process_os(prog: &str, args: &[~str], use libc::funcs::bsd44::getdtablesize; mod rustrt { - #[abi = "cdecl"] extern { pub fn rust_unset_sigprocmask(); } diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 5cc344fdfc1..7e797cec03f 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -2704,7 +2704,7 @@ mod tests { assert_eq!(a.init(), &[11]); } - #[init] + #[test] #[should_fail] fn test_init_empty() { let a: ~[int] = ~[]; @@ -2719,7 +2719,7 @@ mod tests { assert_eq!(a.initn(2), &[11]); } - #[init] + #[test] #[should_fail] fn test_initn_empty() { let a: ~[int] = ~[]; |
