This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +9
-0
lines changed Expand file tree Collapse file tree 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};
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" ]
Original file line number Diff line number Diff 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" ]
9697pub trait Iterator {
9798 /// The type of the elements being iterated over.
Original file line number Diff line number Diff line change 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) ]
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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) ]
502503pub 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) ]
12641266pub trait Write {
12651267 /// Write a buffer into this writer, returning how many bytes were written.
12661268 ///
Original file line number Diff line number Diff line change 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) ]
You can’t perform that action at this time.
0 commit comments