Skip to content

Commit c5461e4

Browse files
committed
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.
1 parent 31d78b2 commit c5461e4

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

src/libcore/extfmt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
#[forbid(deprecated_mode)];
5656
#[forbid(deprecated_pattern)];
5757

58+
// Transitional
59+
#[allow(structural_records)]; // Macros -- needs a snapshot
60+
5861
/*
5962
Syntax Extension: fmt
6063

src/libcore/gc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ with destructors.
3838
// NB: transitionary, de-mode-ing.
3939
#[forbid(deprecated_mode)];
4040
#[forbid(deprecated_pattern)];
41+
// Transitional
42+
#[allow(structural_records)];
4143

4244
use cast;
4345
use io;

src/libcore/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// NB: transitionary, de-mode-ing.
1212
#[forbid(deprecated_mode)];
1313
#[forbid(deprecated_pattern)];
14+
#[allow(structural_records)];
1415

1516
/*!
1617
* Higher-level interfaces to libc::* functions and operating system services.

src/libcore/pipes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ bounded and unbounded protocols allows for less code duplication.
8787
// re-forbid after snapshot
8888
#[forbid(deprecated_pattern)];
8989

90+
// Transitional -- needs snapshot
91+
#[allow(structural_records)];
92+
9093
use cmp::Eq;
9194
use cast::{forget, reinterpret_cast, transmute};
9295
use either::{Either, Left, Right};

src/libcore/run.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// NB: transitionary, de-mode-ing.
1212
#[forbid(deprecated_mode)];
1313
#[forbid(deprecated_pattern)];
14+
#[allow(structural_records)];
1415

1516
//! Process spawning
1617
use io;

0 commit comments

Comments
 (0)