about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-25 23:02:27 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-28 19:41:56 -0800
commitc5461e46aecbf42a23bdecb4cc3f8320fba2866b (patch)
tree8d5625d9f94af430b5dccee4f702245e9704f9ff
parent31d78b2f0756b88cb5923dab9b264733a9579a53 (diff)
core: Allow legacy records in in a few modules
Because of macros, #[allow(structural_records]] in
extfmt, gc, os, pipes, and run. Will need a snapshot.
-rw-r--r--src/libcore/extfmt.rs3
-rw-r--r--src/libcore/gc.rs2
-rw-r--r--src/libcore/os.rs1
-rw-r--r--src/libcore/pipes.rs3
-rw-r--r--src/libcore/run.rs1
5 files changed, 10 insertions, 0 deletions
diff --git a/src/libcore/extfmt.rs b/src/libcore/extfmt.rs
index 854f99be1e2..850d1ea8427 100644
--- a/src/libcore/extfmt.rs
+++ b/src/libcore/extfmt.rs
@@ -55,6 +55,9 @@
 #[forbid(deprecated_mode)];
 #[forbid(deprecated_pattern)];
 
+// Transitional
+#[allow(structural_records)]; // Macros -- needs a snapshot
+
 /*
 Syntax Extension: fmt
 
diff --git a/src/libcore/gc.rs b/src/libcore/gc.rs
index 698e264b57a..bb2e7d788fd 100644
--- a/src/libcore/gc.rs
+++ b/src/libcore/gc.rs
@@ -38,6 +38,8 @@ with destructors.
 // NB: transitionary, de-mode-ing.
 #[forbid(deprecated_mode)];
 #[forbid(deprecated_pattern)];
+// Transitional
+#[allow(structural_records)];
 
 use cast;
 use io;
diff --git a/src/libcore/os.rs b/src/libcore/os.rs
index 6f568e9b2a7..1f1135ae871 100644
--- a/src/libcore/os.rs
+++ b/src/libcore/os.rs
@@ -11,6 +11,7 @@
 // NB: transitionary, de-mode-ing.
 #[forbid(deprecated_mode)];
 #[forbid(deprecated_pattern)];
+#[allow(structural_records)];
 
 /*!
  * Higher-level interfaces to libc::* functions and operating system services.
diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs
index cecc954cdf3..5029fc89b34 100644
--- a/src/libcore/pipes.rs
+++ b/src/libcore/pipes.rs
@@ -87,6 +87,9 @@ bounded and unbounded protocols allows for less code duplication.
 // re-forbid after snapshot
 #[forbid(deprecated_pattern)];
 
+// Transitional -- needs snapshot
+#[allow(structural_records)];
+
 use cmp::Eq;
 use cast::{forget, reinterpret_cast, transmute};
 use either::{Either, Left, Right};
diff --git a/src/libcore/run.rs b/src/libcore/run.rs
index eeae7f5b291..8aeae1adeec 100644
--- a/src/libcore/run.rs
+++ b/src/libcore/run.rs
@@ -11,6 +11,7 @@
 // NB: transitionary, de-mode-ing.
 #[forbid(deprecated_mode)];
 #[forbid(deprecated_pattern)];
+#[allow(structural_records)];
 
 //! Process spawning
 use io;