Skip to content

Commit 951ef9d

Browse files
committed
fix for new attributes failing. issue #22964
1 parent b4c965e commit 951ef9d

File tree

31 files changed

+64
-4
lines changed

31 files changed

+64
-4
lines changed

src/liballoc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
//! The [`heap`](heap/index.html) module defines the low-level interface to the
5757
//! default global allocator. It is not compatible with the libc allocator API.
5858
59+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
60+
#![cfg_attr(stage0, feature(custom_attribute))]
5961
#![crate_name = "alloc"]
6062
#![unstable(feature = "alloc")]
6163
#![feature(staged_api)]

src/libarena/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
//! arena but can only hold objects of a single type, and `Arena`, which is a
2020
//! more complex, slower arena which can hold objects of any type.
2121
22+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
23+
#![cfg_attr(stage0, feature(custom_attribute))]
2224
#![crate_name = "arena"]
2325
#![unstable(feature = "rustc_private")]
2426
#![staged_api]

src/libcollections/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
//!
1313
//! See [std::collections](../std/collections) for a detailed discussion of collections in Rust.
1414
15-
15+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
16+
#![cfg_attr(stage0, feature(custom_attribute))]
1617
#![crate_name = "collections"]
1718
#![unstable(feature = "collections")]
1819
#![staged_api]

src/libcore/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
// Since libcore defines many fundamental lang items, all tests live in a
4848
// separate crate, libcoretest, to avoid bizarre issues.
4949

50+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
51+
#![cfg_attr(stage0, feature(custom_attribute))]
5052
#![crate_name = "core"]
5153
#![unstable(feature = "core")]
5254
#![staged_api]

src/libcoretest/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![feature(box_syntax)]
1214
#![feature(int_uint)]
1315
#![feature(unboxed_closures)]

src/libflate/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//! [def]: https://en.wikipedia.org/wiki/DEFLATE
1515
//! [mz]: https://code.google.com/p/miniz/
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "flate"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]

src/libfmt_macros/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//! Parsing does not happen at runtime: structures of `std::fmt::rt` are
1515
//! generated instead.
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "fmt_macros"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]

src/libgetopts/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
//! }
7878
//! ```
7979
80+
81+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
82+
#![cfg_attr(stage0, feature(custom_attribute))]
8083
#![crate_name = "getopts"]
8184
#![unstable(feature = "rustc_private",
8285
reason = "use the crates.io `getopts` library instead")]

src/libgraphviz/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@
264264
//!
265265
//! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
266266
267+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
268+
#![cfg_attr(stage0, feature(custom_attribute))]
267269
#![crate_name = "graphviz"]
268270
#![unstable(feature = "rustc_private")]
269271
#![feature(staged_api)]

src/liblibc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![crate_name = "libc"]
1214
#![crate_type = "rlib"]
1315
#![cfg_attr(not(feature = "cargo-build"),

src/liblog/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@
155155
//! they're turned off (just a load and an integer comparison). This also means that
156156
//! if logging is disabled, none of the components of the log will be executed.
157157
158+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
159+
#![cfg_attr(stage0, feature(custom_attribute))]
158160
#![crate_name = "log"]
159161
#![unstable(feature = "rustc_private",
160162
reason = "use the crates.io `log` library instead")]

src/librand/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
//! is not recommended to use this library directly, but rather the official
1717
//! interface through `std::rand`.
1818
19+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
20+
#![cfg_attr(stage0, feature(custom_attribute))]
1921
#![crate_name = "rand"]
2022
#![crate_type = "rlib"]
2123
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",

src/librbml/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
//! It is loosely based on the Extensible Binary Markup Language (ebml):
1616
//! http://www.matroska.org/technical/specs/rfc/index.html
1717
18+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
19+
#![cfg_attr(stage0, feature(custom_attribute))]
1820
#![crate_name = "rbml"]
1921
#![unstable(feature = "rustc_private")]
2022
#![staged_api]

src/librustc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "rustc"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]
@@ -40,7 +42,6 @@
4042
#![feature(std_misc)]
4143
#![feature(os)]
4244
#![cfg_attr(test, feature(test))]
43-
4445
extern crate arena;
4546
extern crate flate;
4647
extern crate fmt_macros;

src/librustc_back/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
//! one that doesn't; the one that doesn't might get decent parallel
2222
//! build speedups.
2323
24+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
25+
#![cfg_attr(stage0, feature(custom_attribute))]
2426
#![crate_name = "rustc_back"]
2527
#![unstable(feature = "rustc_private")]
2628
#![staged_api]

src/librustc_bitflags/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
12+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
13+
#![cfg_attr(stage0, feature(custom_attribute))]
1114
#![crate_name = "rustc_bitflags"]
1215
#![feature(staged_api)]
1316
#![staged_api]

src/librustc_borrowck/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![crate_name = "rustc_borrowck"]
1214
#![unstable(feature = "rustc_private")]
1315
#![staged_api]

src/librustc_driver/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "rustc_driver"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]

src/librustc_lint/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
//!
2020
//! This API is completely unstable and subject to change.
2121
22+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
23+
#![cfg_attr(stage0, feature(custom_attribute))]
2224
#![crate_name = "rustc_lint"]
2325
#![unstable(feature = "rustc_private")]
2426
#![staged_api]

src/librustc_llvm/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![allow(non_upper_case_globals)]
1214
#![allow(non_camel_case_types)]
1315
#![allow(non_snake_case)]

src/librustc_privacy/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![crate_name = "rustc_privacy"]
1214
#![unstable(feature = "rustc_private")]
1315
#![staged_api]

src/librustc_resolve/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![crate_name = "rustc_resolve"]
1214
#![unstable(feature = "rustc_private")]
1315
#![staged_api]

src/librustc_trans/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "rustc_trans"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]

src/librustc_typeck/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ independently:
6262
This API is completely unstable and subject to change.
6363
6464
*/
65-
65+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
66+
#![cfg_attr(stage0, feature(custom_attribute))]
6667
#![crate_name = "rustc_typeck"]
6768
#![unstable(feature = "rustc_private")]
6869
#![staged_api]

src/librustdoc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12+
#![cfg_attr(stage0, feature(custom_attribute))]
1113
#![crate_name = "rustdoc"]
1214
#![unstable(feature = "rustdoc")]
1315
#![staged_api]

src/libserialize/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
Core encoding and decoding interfaces.
1515
*/
1616

17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "serialize"]
1820
#![unstable(feature = "rustc_private",
1921
reason = "deprecated in favor of rustc-serialize on crates.io")]

src/libstd/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
//! to all code by default. [`macros`](macros/index.html) contains
9595
//! all the standard macros, such as `assert!`, `panic!`, `println!`,
9696
//! and `format!`, also available to all Rust code.
97-
97+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
98+
#![cfg_attr(stage0, feature(custom_attribute))]
9899
#![crate_name = "std"]
99100
#![stable(feature = "rust1", since = "1.0.0")]
100101
#![staged_api]

src/libsyntax/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18+
#![cfg_attr(stage0, feature(custom_attribute))]
1719
#![crate_name = "syntax"]
1820
#![unstable(feature = "rustc_private")]
1921
#![staged_api]

src/libterm/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
//! [win]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682010%28v=vs.85%29.aspx
3939
//! [ti]: https://en.wikipedia.org/wiki/Terminfo
4040
41+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
42+
#![cfg_attr(stage0, feature(custom_attribute))]
4143
#![crate_name = "term"]
4244
#![unstable(feature = "rustc_private",
4345
reason = "use the crates.io `term` library instead")]

src/libtest/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// running tests while providing a base that other test frameworks may
2424
// build off of.
2525

26+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
27+
#![cfg_attr(stage0, feature(custom_attribute))]
2628
#![crate_name = "test"]
2729
#![unstable(feature = "test")]
2830
#![staged_api]

src/libunicode/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
//! provide for basic string-related manipulations. This crate does not
2121
//! (yet) aim to provide a full set of Unicode tables.
2222
23+
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
24+
#![cfg_attr(stage0, feature(custom_attribute))]
2325
#![crate_name = "unicode"]
2426
#![unstable(feature = "unicode")]
2527
#![feature(staged_api)]

0 commit comments

Comments
 (0)