Skip to content

Commit 7539451

Browse files
committed
Revert "Remove spotlight usage"
This reverts commit 13c6d58.
1 parent 1cff03d commit 7539451

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

src/libcore/future/future.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use crate::task::{Context, Poll};
2424
/// `.await` the value.
2525
///
2626
/// [`Waker`]: ../task/struct.Waker.html
27+
#[doc(spotlight)]
2728
#[must_use = "futures do nothing unless you `.await` or poll them"]
2829
#[stable(feature = "futures_api", since = "1.36.0")]
2930
#[lang = "future_trait"]

src/libcore/iter/traits/iterator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
9292
label = "`{Self}` is not an iterator",
9393
message = "`{Self}` is not an iterator"
9494
)]
95+
#[doc(spotlight)]
9596
#[must_use = "iterators are lazy and do nothing unless consumed"]
9697
pub trait Iterator {
9798
/// The type of the elements being iterated over.

src/libcore/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
#![feature(custom_inner_attributes)]
9797
#![feature(decl_macro)]
9898
#![feature(doc_cfg)]
99+
#![cfg_attr(not(bootstrap), feature(doc_spotlight))]
99100
#![feature(extern_types)]
100101
#![feature(fundamental)]
101102
#![feature(intrinsics)]

src/librustc_ast_passes/feature_gate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
253253
include => external_doc
254254
cfg => doc_cfg
255255
masked => doc_masked
256+
spotlight => doc_spotlight
256257
alias => doc_alias
257258
keyword => doc_keyword
258259
);

src/librustc_span/symbol.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ symbols! {
298298
doc_cfg,
299299
doc_keyword,
300300
doc_masked,
301+
doc_spotlight,
301302
doctest,
302303
document_private_items,
303304
dotdoteq_in_patterns,
@@ -797,6 +798,7 @@ symbols! {
797798
Some,
798799
specialization,
799800
speed,
801+
spotlight,
800802
sqrtf32,
801803
sqrtf64,
802804
sse4a_target_feature,

src/libstd/io/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ where
499499
/// [`&str`]: ../../std/primitive.str.html
500500
/// [slice]: ../../std/primitive.slice.html
501501
#[stable(feature = "rust1", since = "1.0.0")]
502+
#[doc(spotlight)]
502503
pub trait Read {
503504
/// Pull some bytes from this source into the specified buffer, returning
504505
/// how many bytes were read.
@@ -1261,6 +1262,7 @@ impl Initializer {
12611262
///
12621263
/// [`write_all`]: #method.write_all
12631264
#[stable(feature = "rust1", since = "1.0.0")]
1265+
#[doc(spotlight)]
12641266
pub trait Write {
12651267
/// Write a buffer into this writer, returning how many bytes were written.
12661268
///

src/libstd/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
#![feature(doc_cfg)]
261261
#![feature(doc_keyword)]
262262
#![feature(doc_masked)]
263+
#![cfg_attr(not(bootstrap), feature(doc_spotlight))]
263264
#![feature(dropck_eyepatch)]
264265
#![feature(duration_constants)]
265266
#![feature(exact_size_is_empty)]

0 commit comments

Comments
 (0)