From 37aee97e4b22c58ed2c7898d666c62fb27646851 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 25 Sep 2012 12:04:02 -0700 Subject: [PATCH] core: Mark more mods as demoded --- src/libcore/send_map.rs | 4 ++++ src/libcore/uniq.rs | 4 ++++ src/libcore/unit.rs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs index 2a010ee4712..53dcff2e315 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/send_map.rs @@ -4,6 +4,10 @@ Sendable hash maps. Very much a work in progress. */ +// NB: transitionary, de-mode-ing. +#[forbid(deprecated_mode)]; +#[forbid(deprecated_pattern)]; + use cmp::Eq; use hash::Hash; use to_bytes::IterBytes; diff --git a/src/libcore/uniq.rs b/src/libcore/uniq.rs index 1a752ce0e6c..1d5dd8eca87 100644 --- a/src/libcore/uniq.rs +++ b/src/libcore/uniq.rs @@ -1,5 +1,9 @@ //! Operations on unique pointer types +// NB: transitionary, de-mode-ing. +#[forbid(deprecated_mode)]; +#[forbid(deprecated_pattern)]; + use cmp::{Eq, Ord}; impl ~const T : Eq { diff --git a/src/libcore/unit.rs b/src/libcore/unit.rs index 4ccdf12b500..923b0811b3a 100644 --- a/src/libcore/unit.rs +++ b/src/libcore/unit.rs @@ -4,6 +4,10 @@ Functions for the unit type. */ +// NB: transitionary, de-mode-ing. +#[forbid(deprecated_mode)]; +#[forbid(deprecated_pattern)]; + use cmp::{Eq, Ord}; impl () : Eq {