Skip to content

Commit 631a116

Browse files
committed
Auto merge of #116822 - notriddle:notriddle/rust-logo, r=fmease
docs: add Rust logo to more compiler crates c6e6ecb added it to some of the compiler's crates, but avoided adding it to all of them to reduce bit-rot. This commit adds to more. r? `@GuillaumeGomez`
2 parents c07693c + 2ff2624 commit 631a116

File tree

18 files changed

+51
-1
lines changed

18 files changed

+51
-1
lines changed

compiler/rustc_abi/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![cfg_attr(feature = "nightly", feature(step_trait))]
22
#![cfg_attr(feature = "nightly", allow(internal_features))]
3+
#![cfg_attr(all(not(bootstrap), feature = "nightly"), doc(rust_logo))]
4+
#![cfg_attr(all(not(bootstrap), feature = "nightly"), feature(rustdoc_internals))]
35

46
use std::fmt;
57
use std::num::{NonZeroUsize, ParseIntError};

compiler/rustc_ast_lowering/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
//! get confused if the spans from leaf AST nodes occur in multiple places
3131
//! in the HIR, especially for multiple identifiers.
3232
33+
#![cfg_attr(not(bootstrap), allow(internal_features))]
34+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
35+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3336
#![feature(box_patterns)]
3437
#![feature(let_chains)]
3538
#![feature(never_type)]

compiler/rustc_ast_passes/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//!
55
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
66
7+
#![cfg_attr(not(bootstrap), allow(internal_features))]
8+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
9+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
710
#![feature(box_patterns)]
811
#![feature(if_let_guard)]
912
#![feature(iter_is_partitioned)]

compiler/rustc_ast_pretty/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![cfg_attr(not(bootstrap), allow(internal_features))]
2+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
3+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
14
#![deny(rustc::untranslatable_diagnostic)]
25
#![deny(rustc::diagnostic_outside_of_impl)]
36
#![feature(associated_type_bounds)]

compiler/rustc_attr/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
55
//! to this crate.
66
7+
#![cfg_attr(not(bootstrap), allow(internal_features))]
8+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
710
#![feature(let_chains)]
811
#![deny(rustc::untranslatable_diagnostic)]
912
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_baked_icu_data/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
//! -k list/and@1 fallback/likelysubtags@1 fallback/parents@1 fallback/supplement/co@1 \
2020
//! --cldr-tag latest --icuexport-tag latest -o src/data
2121
//! ```
22+
23+
#![cfg_attr(not(bootstrap), allow(internal_features))]
24+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
25+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
2226
#![allow(elided_lifetimes_in_paths)]
2327

2428
mod data {

compiler/rustc_borrowck/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! This query borrow-checks the MIR to (further) ensure it is not broken.
22
3+
#![allow(internal_features)]
4+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
5+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
36
#![feature(associated_type_bounds)]
47
#![feature(box_patterns)]
58
#![feature(let_chains)]
@@ -11,7 +14,6 @@
1114
#![feature(trusted_step)]
1215
#![feature(try_blocks)]
1316
#![recursion_limit = "256"]
14-
#![allow(internal_features)]
1517

1618
#[macro_use]
1719
extern crate rustc_middle;

compiler/rustc_builtin_macros/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! This crate contains implementations of built-in macros and other code generating facilities
22
//! injecting code into the crate before it is lowered to HIR.
33
4+
#![cfg_attr(not(bootstrap), allow(internal_features))]
5+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
47
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
58
#![feature(array_windows)]
69
#![feature(box_patterns)]

compiler/rustc_codegen_cranelift/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![cfg_attr(not(bootstrap), allow(internal_features))]
2+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
3+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
14
#![feature(rustc_private)]
25
// Note: please avoid adding other feature gates where possible
36
#![warn(rust_2018_idioms)]

compiler/rustc_codegen_gcc/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* TODO(antoyo): remove the patches.
1313
*/
1414

15+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
16+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1517
#![feature(
1618
rustc_private,
1719
decl_macro,

compiler/rustc_codegen_llvm/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//!
55
//! This API is completely unstable and subject to change.
66
7+
#![cfg_attr(not(bootstrap), allow(internal_features))]
8+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
710
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
811
#![feature(extern_types)]
912
#![feature(hash_raw_entry)]

compiler/rustc_const_eval/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Rust MIR: a lowered representation of Rust.
44
55
*/
66

7+
#![cfg_attr(not(bootstrap), allow(internal_features))]
8+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
710
#![deny(rustc::untranslatable_diagnostic)]
811
#![feature(assert_matches)]
912
#![feature(box_patterns)]

compiler/rustc_data_structures/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//!
77
//! This API is completely unstable and subject to change.
88
9+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
10+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
911
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1012
#![feature(array_windows)]
1113
#![feature(associated_type_bounds)]

compiler/rustc_driver/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in
22
// `rustc_driver_impl` to be compiled in parallel with other crates.
33

4+
#![cfg_attr(not(bootstrap), allow(internal_features))]
5+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7+
48
pub use rustc_driver_impl::*;

compiler/rustc_error_codes/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![cfg_attr(not(bootstrap), allow(internal_features))]
2+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
3+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
14
#![deny(rustdoc::invalid_codeblock_attributes)]
25
#![deny(rustc::untranslatable_diagnostic)]
36
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_error_messages/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
2+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
13
#![feature(let_chains)]
24
#![feature(lazy_cell)]
35
#![feature(rustc_attrs)]

compiler/rustc_expand/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
2+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
13
#![feature(array_windows)]
24
#![feature(associated_type_bounds)]
35
#![feature(associated_type_defaults)]

compiler/rustc_feature/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
1212
//! symbol to the `accepted` or `removed` modules respectively.
1313
14+
#![cfg_attr(not(bootstrap), allow(internal_features))]
15+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
16+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
1417
#![feature(lazy_cell)]
1518
#![deny(rustc::untranslatable_diagnostic)]
1619
#![deny(rustc::diagnostic_outside_of_impl)]

0 commit comments

Comments
 (0)