File tree 7 files changed +9
-0
lines changed
7 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ use crate::task::{Context, Poll};
24
24
/// `.await` the value.
25
25
///
26
26
/// [`Waker`]: ../task/struct.Waker.html
27
+ #[ doc( spotlight) ]
27
28
#[ must_use = "futures do nothing unless you `.await` or poll them" ]
28
29
#[ stable( feature = "futures_api" , since = "1.36.0" ) ]
29
30
#[ lang = "future_trait" ]
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
92
92
label = "`{Self}` is not an iterator" ,
93
93
message = "`{Self}` is not an iterator"
94
94
) ]
95
+ #[ doc( spotlight) ]
95
96
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
96
97
pub trait Iterator {
97
98
/// The type of the elements being iterated over.
Original file line number Diff line number Diff line change 96
96
#![ feature( custom_inner_attributes) ]
97
97
#![ feature( decl_macro) ]
98
98
#![ feature( doc_cfg) ]
99
+ #![ cfg_attr( not( bootstrap) , feature( doc_spotlight) ) ]
99
100
#![ feature( duration_consts_2) ]
100
101
#![ feature( extern_types) ]
101
102
#![ feature( fundamental) ]
Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
253
253
include => external_doc
254
254
cfg => doc_cfg
255
255
masked => doc_masked
256
+ spotlight => doc_spotlight
256
257
alias => doc_alias
257
258
keyword => doc_keyword
258
259
) ;
Original file line number Diff line number Diff line change @@ -400,6 +400,7 @@ symbols! {
400
400
doc_cfg,
401
401
doc_keyword,
402
402
doc_masked,
403
+ doc_spotlight,
403
404
doctest,
404
405
document_private_items,
405
406
dotdot_in_tuple_patterns,
@@ -968,6 +969,7 @@ symbols! {
968
969
soft,
969
970
specialization,
970
971
speed,
972
+ spotlight,
971
973
sqrtf32,
972
974
sqrtf64,
973
975
sse4a_target_feature,
Original file line number Diff line number Diff line change @@ -499,6 +499,7 @@ where
499
499
/// [`&str`]: ../../std/primitive.str.html
500
500
/// [slice]: ../../std/primitive.slice.html
501
501
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
502
+ #[ doc( spotlight) ]
502
503
pub trait Read {
503
504
/// Pull some bytes from this source into the specified buffer, returning
504
505
/// how many bytes were read.
@@ -1261,6 +1262,7 @@ impl Initializer {
1261
1262
///
1262
1263
/// [`write_all`]: #method.write_all
1263
1264
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1265
+ #[ doc( spotlight) ]
1264
1266
pub trait Write {
1265
1267
/// Write a buffer into this writer, returning how many bytes were written.
1266
1268
///
Original file line number Diff line number Diff line change 261
261
#![ feature( doc_cfg) ]
262
262
#![ feature( doc_keyword) ]
263
263
#![ feature( doc_masked) ]
264
+ #![ cfg_attr( not( bootstrap) , feature( doc_spotlight) ) ]
264
265
#![ feature( dropck_eyepatch) ]
265
266
#![ feature( duration_constants) ]
266
267
#![ feature( exact_size_is_empty) ]
You can’t perform that action at this time.
0 commit comments