Skip to content

Commit a7586fd

Browse files
Clean up code a bit:
* Remove "bool_to_options" feature * Update version for compiler feature * rustfmt
1 parent 5d08f4c commit a7586fd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

alloc/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@
6565
#![doc(
6666
html_playground_url = "https://play.rust-lang.org/",
6767
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
68-
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))),
68+
test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
6969
)]
70-
#![cfg_attr(not(bootstrap),
70+
#![cfg_attr(
71+
not(bootstrap),
7172
doc(cfg_hide(not(test), not(any(test, bootstrap)), target_has_atomic = "ptr"))
7273
)]
7374
#![no_std]

core/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@
5858
html_playground_url = "https://play.rust-lang.org/",
5959
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
6060
test(no_crate_inject, attr(deny(warnings))),
61-
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))),
61+
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
6262
)]
63-
#![cfg_attr(not(bootstrap),
63+
#![cfg_attr(
64+
not(bootstrap),
6465
doc(cfg_hide(
6566
not(test),
6667
target_pointer_width = "16",

std/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,9 @@
193193
html_playground_url = "https://play.rust-lang.org/",
194194
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
195195
test(no_crate_inject, attr(deny(warnings))),
196-
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))),
197-
)]
198-
#![cfg_attr(not(bootstrap),
199-
doc(cfg_hide(not(test), not(any(test, bootstrap))))
196+
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
200197
)]
198+
#![cfg_attr(not(bootstrap), doc(cfg_hide(not(test), not(any(test, bootstrap)))))]
201199
// Don't link to std. We are std.
202200
#![no_std]
203201
#![warn(deprecated_in_future)]

0 commit comments

Comments
 (0)