summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-09-02 18:05:19 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-04 11:30:48 -0700
commit100368ab86d4ac7fa306c1cebd3bf26c7d24bcda (patch)
tree5f3015e83bb495794408a6d1b5ae2b4a5fef0aa0 /src/libstd
parent3283b137b753e2032c566d48f179b90bca2b6614 (diff)
downloadrust-100368ab86d4ac7fa306c1cebd3bf26c7d24bcda.tar.gz
rust-100368ab86d4ac7fa306c1cebd3bf26c7d24bcda.zip
Confirm demoding of smallintmap.rs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/smallintmap.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs
index 2173d67b100..29f3f4d42a4 100644
--- a/src/libstd/smallintmap.rs
+++ b/src/libstd/smallintmap.rs
@@ -2,6 +2,9 @@
  * A simple map based on a vector for small integer keys. Space requirements
  * are O(highest integer key).
  */
+#[forbid(deprecated_mode)];
+#[forbid(deprecated_pattern)];
+
 use core::option;
 use core::option::{Some, None};
 use dvec::DVec;
@@ -26,7 +29,7 @@ fn mk<T: copy>() -> smallintmap<T> {
  * the specified key then the original value is replaced.
  */
 #[inline(always)]
-fn insert<T: copy>(self: smallintmap<T>, key: uint, val: T) {
+fn insert<T: copy>(self: smallintmap<T>, key: uint, +val: T) {
     //io::println(fmt!("%?", key));
     self.v.grow_set_elt(key, None, Some(val));
 }