about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-05-02 22:52:19 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-05-08 17:03:58 -0700
commitee78d811e488e2f279cfda454f8f909477dc3d6b (patch)
tree880d1891fc7729d4ab0a2eab604c6688fba73cb0
parentbba0680cb0801bc52d2abfc87bbf0885dc0355f8 (diff)
downloadrust-ee78d811e488e2f279cfda454f8f909477dc3d6b.tar.gz
rust-ee78d811e488e2f279cfda454f8f909477dc3d6b.zip
libstd: Start warning about mutable fields, now that they only exist in stage0
-rw-r--r--src/libstd/std.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/std.rc b/src/libstd/std.rc
index 51e11669f44..931974d2454 100644
--- a/src/libstd/std.rc
+++ b/src/libstd/std.rc
@@ -28,7 +28,9 @@ not required in or otherwise suitable for the core library.
 
 #[allow(vecs_implicitly_copyable)];
 #[deny(non_camel_case_types)];
-#[allow(deprecated_mutable_fields)];
+
+// Allow mutable fields only in stage0.
+#[warn(deprecated_mutable_fields)];
 
 pub mod uv_ll;