Skip to content

Commit 1a56959

Browse files
committed
rustdoc: remove rust logo from non-Rust crates
1 parent b2be1c3 commit 1a56959

File tree

43 files changed

+195
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+195
-32
lines changed

compiler/rustc_arena/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
1212
test(no_crate_inject, attr(deny(warnings)))
1313
)]
14+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
15+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1416
#![feature(core_intrinsics)]
1517
#![feature(dropck_eyepatch)]
1618
#![feature(new_uninit)]

compiler/rustc_ast/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
99
test(attr(deny(warnings)))
1010
)]
11+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
12+
#![cfg_attr(not(bootstrap), allow(internal_features))]
13+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1114
#![feature(associated_type_bounds)]
1215
#![feature(box_patterns)]
1316
#![feature(const_trait_impl)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
4+
#![cfg_attr(not(bootstrap), allow(internal_features))]
25
#![feature(associated_type_bounds)]
36
#![feature(box_patterns)]
47
#![feature(if_let_guard)]

compiler/rustc_driver_impl/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
//! This API is completely unstable and subject to change.
66
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
8+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
9+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
10+
#![cfg_attr(not(bootstrap), allow(internal_features))]
811
#![feature(lazy_cell)]
912
#![feature(decl_macro)]
1013
#![feature(ice_to_disk)]

compiler/rustc_errors/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//! This module contains the code for creating and emitting diagnostics.
44
55
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
6+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
68
#![feature(array_windows)]
79
#![feature(extract_if)]
810
#![feature(if_let_guard)]

compiler/rustc_fluent_macro/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3+
#![cfg_attr(not(bootstrap), allow(internal_features))]
4+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
25
#![feature(proc_macro_diagnostic)]
36
#![feature(proc_macro_span)]
47
#![deny(rustc::untranslatable_diagnostic)]

compiler/rustc_graphviz/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@
273273
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
274274
test(attr(allow(unused_variables), deny(warnings)))
275275
)]
276+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
277+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
278+
#![cfg_attr(not(bootstrap), allow(internal_features))]
276279
#![deny(rustc::untranslatable_diagnostic)]
277280
#![deny(rustc::diagnostic_outside_of_impl)]
278281

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ This API is completely unstable and subject to change.
5757

5858
#![allow(rustc::potential_query_instability)]
5959
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
60+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
61+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
62+
#![cfg_attr(not(bootstrap), allow(internal_features))]
6063
#![feature(box_patterns)]
6164
#![feature(control_flow_enum)]
6265
#![feature(if_let_guard)]

compiler/rustc_incremental/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
33
#![deny(missing_docs)]
44
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
5+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
6+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
7+
#![cfg_attr(not(bootstrap), allow(internal_features))]
58
#![feature(never_type)]
69
#![recursion_limit = "256"]
710
#![deny(rustc::untranslatable_diagnostic)]

compiler/rustc_infer/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
//! This API is completely unstable and subject to change.
1414
1515
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
16+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
17+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
18+
#![cfg_attr(not(bootstrap), allow(internal_features))]
1619
#![feature(associated_type_bounds)]
1720
#![feature(box_patterns)]
1821
#![feature(control_flow_enum)]

0 commit comments

Comments
 (0)