Skip to content

Commit 87b166d

Browse files
committed
std: Remove unused attributes
This also enables two tests properly.
1 parent 1f7bfac commit 87b166d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/libstd/cell.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
//! Types dealing with dynamic mutability
1212
13-
#[missing_doc];
14-
1513
use prelude::*;
1614
use cast;
1715
use util::NonCopyable;

src/libstd/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@ mod tests {
27042704
assert_eq!(a.init(), &[11]);
27052705
}
27062706

2707-
#[init]
2707+
#[test]
27082708
#[should_fail]
27092709
fn test_init_empty() {
27102710
let a: ~[int] = ~[];
@@ -2719,7 +2719,7 @@ mod tests {
27192719
assert_eq!(a.initn(2), &[11]);
27202720
}
27212721

2722-
#[init]
2722+
#[test]
27232723
#[should_fail]
27242724
fn test_initn_empty() {
27252725
let a: ~[int] = ~[];

src/test/run-pass/ifmt.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use std::str;
2323
struct A;
2424
struct B;
2525

26-
#[fmt="foo"]
2726
impl fmt::Signed for A {
2827
fn fmt(_: &A, f: &mut fmt::Formatter) { f.buf.write("aloha".as_bytes()); }
2928
}

0 commit comments

Comments
 (0)