Skip to content

Commit 100368a

Browse files
killerswanbrson
authored andcommitted
Confirm demoding of smallintmap.rs
1 parent 3283b13 commit 100368a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/smallintmap.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* A simple map based on a vector for small integer keys. Space requirements
33
* are O(highest integer key).
44
*/
5+
#[forbid(deprecated_mode)];
6+
#[forbid(deprecated_pattern)];
7+
58
use core::option;
69
use core::option::{Some, None};
710
use dvec::DVec;
@@ -26,7 +29,7 @@ fn mk<T: copy>() -> smallintmap<T> {
2629
* the specified key then the original value is replaced.
2730
*/
2831
#[inline(always)]
29-
fn insert<T: copy>(self: smallintmap<T>, key: uint, val: T) {
32+
fn insert<T: copy>(self: smallintmap<T>, key: uint, +val: T) {
3033
//io::println(fmt!("%?", key));
3134
self.v.grow_set_elt(key, None, Some(val));
3235
}

0 commit comments

Comments
 (0)