Skip to content

Commit 31d78b2

Browse files
committed
Add #[legacy_records] crate attribute
In rustc, rustdoc, rusti, syntax, and std.
1 parent 6cbccc9 commit 31d78b2

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

src/librustc/rustc.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#[legacy_modes];
2222
#[legacy_exports];
23+
#[legacy_records];
2324

2425
#[allow(non_implicitly_copyable_typarams)];
2526
#[allow(non_camel_case_types)];

src/librustdoc/rustdoc.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#[no_core];
2323
#[legacy_modes];
24+
#[legacy_records];
2425

2526
#[allow(vecs_implicitly_copyable)];
2627
#[allow(non_implicitly_copyable_typarams)];

src/librusti/rusti.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#[crate_type = "lib"];
1919

20+
#[legacy_records];
2021
#[no_core];
2122

2223
#[allow(vecs_implicitly_copyable,

src/libstd/std.rc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ not required in or otherwise suitable for the core library.
3333
#[allow(deprecated_mode)];
3434
#[forbid(deprecated_pattern)];
3535

36+
37+
// Transitional
38+
#[legacy_records];
39+
3640
#[no_core];
3741

3842
extern mod core(vers = "0.6");

src/libsyntax/syntax.rc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#[legacy_modes];
2020
#[legacy_exports];
21+
#[legacy_records];
2122

2223
#[allow(vecs_implicitly_copyable)];
2324
#[allow(non_camel_case_types)];
@@ -40,6 +41,7 @@ pub mod syntax {
4041
mod attr;
4142
#[legacy_exports]
4243
mod diagnostic;
44+
#[legacy_records]
4345
mod codemap;
4446
#[legacy_exports]
4547
mod ast;
@@ -107,8 +109,8 @@ mod ext {
107109
#[legacy_exports]
108110
mod source_util;
109111

110-
#[legacy_exports]
111112
#[path = "pipes/mod.rs"]
113+
#[legacy_exports]
112114
mod pipes;
113115

114116
#[legacy_exports]

0 commit comments

Comments
 (0)