Skip to content

Commit ac4ff0a

Browse files
authored
Made remove_from an unstable feature
1 parent 7cac5c9 commit ac4ff0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ impl<T: PartialEq> Vec<T> {
12971297
self.dedup_by(|a, b| a == b)
12981298
}
12991299

1300-
#[stable(feature = "rust1", since = "1.0.0")]
1300+
#[unstable(feature = "remove_from")]
13011301
pub fn remove_item(&mut self, item: &T) -> Option<usize> {
13021302
let pos = match self.iter().position(|x| *x == *item) {
13031303
Some(x) => x,

0 commit comments

Comments
 (0)