We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3283b13 commit 100368aCopy full SHA for 100368a
src/libstd/smallintmap.rs
@@ -2,6 +2,9 @@
2
* A simple map based on a vector for small integer keys. Space requirements
3
* are O(highest integer key).
4
*/
5
+#[forbid(deprecated_mode)];
6
+#[forbid(deprecated_pattern)];
7
+
8
use core::option;
9
use core::option::{Some, None};
10
use dvec::DVec;
@@ -26,7 +29,7 @@ fn mk<T: copy>() -> smallintmap<T> {
26
29
* the specified key then the original value is replaced.
27
30
28
31
#[inline(always)]
-fn insert<T: copy>(self: smallintmap<T>, key: uint, val: T) {
32
+fn insert<T: copy>(self: smallintmap<T>, key: uint, +val: T) {
33
//io::println(fmt!("%?", key));
34
self.v.grow_set_elt(key, None, Some(val));
35
}
0 commit comments