From 100368ab86d4ac7fa306c1cebd3bf26c7d24bcda Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Sun, 2 Sep 2012 18:05:19 -0700 Subject: [PATCH] Confirm demoding of smallintmap.rs --- src/libstd/smallintmap.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index 2173d67b1001..29f3f4d42a4f 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() -> smallintmap { * the specified key then the original value is replaced. */ #[inline(always)] -fn insert(self: smallintmap, key: uint, val: T) { +fn insert(self: smallintmap, key: uint, +val: T) { //io::println(fmt!("%?", key)); self.v.grow_set_elt(key, None, Some(val)); }