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.
This commit is contained in:
Tim Chevalier 2013-01-25 23:02:27 -08:00
parent 31d78b2f07
commit c5461e46ae
5 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,9 @@
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
// Transitional
#[allow(structural_records)]; // Macros -- needs a snapshot
/*
Syntax Extension: fmt

View File

@ -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;

View File

@ -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.

View File

@ -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};

View File

@ -11,6 +11,7 @@
// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
#[allow(structural_records)];
//! Process spawning
use io;