mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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:
parent
31d78b2f07
commit
c5461e46ae
@ -55,6 +55,9 @@
|
||||
#[forbid(deprecated_mode)];
|
||||
#[forbid(deprecated_pattern)];
|
||||
|
||||
// Transitional
|
||||
#[allow(structural_records)]; // Macros -- needs a snapshot
|
||||
|
||||
/*
|
||||
Syntax Extension: fmt
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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};
|
||||
|
@ -11,6 +11,7 @@
|
||||
// NB: transitionary, de-mode-ing.
|
||||
#[forbid(deprecated_mode)];
|
||||
#[forbid(deprecated_pattern)];
|
||||
#[allow(structural_records)];
|
||||
|
||||
//! Process spawning
|
||||
use io;
|
||||
|
Loading…
Reference in New Issue
Block a user