Skip to content

Commit 3cecd60

Browse files
committed
Revert "Remove spotlight usage"
This reverts commit 13c6d58.
1 parent 9845075 commit 3cecd60

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

src/libcore/future/future.rs

+1
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

+1
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

+1
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(duration_consts_2)]
100101
#![feature(extern_types)]
101102
#![feature(fundamental)]

src/librustc_ast_passes/feature_gate.rs

+1
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

+2
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ symbols! {
400400
doc_cfg,
401401
doc_keyword,
402402
doc_masked,
403+
doc_spotlight,
403404
doctest,
404405
document_private_items,
405406
dotdot_in_tuple_patterns,
@@ -968,6 +969,7 @@ symbols! {
968969
soft,
969970
specialization,
970971
speed,
972+
spotlight,
971973
sqrtf32,
972974
sqrtf64,
973975
sse4a_target_feature,

src/libstd/io/mod.rs

+2
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

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
#![feature(doc_cfg)]
262262
#![feature(doc_keyword)]
263263
#![feature(doc_masked)]
264+
#![cfg_attr(not(bootstrap), feature(doc_spotlight))]
264265
#![feature(dropck_eyepatch)]
265266
#![feature(duration_constants)]
266267
#![feature(exact_size_is_empty)]

0 commit comments

Comments
 (0)