From 13c6d5819aae3c0de6a90e7f17ea967bf4487cbb Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 27 Feb 2020 14:38:30 +0100 Subject: [PATCH] Remove spotlight usage --- src/libcore/future/future.rs | 1 - src/libcore/iter/traits/iterator.rs | 1 - src/libcore/lib.rs | 1 - src/librustc_ast_passes/feature_gate.rs | 1 - src/librustc_span/symbol.rs | 2 -- src/libstd/io/mod.rs | 2 -- src/libstd/lib.rs | 1 - 7 files changed, 9 deletions(-) diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index f14ed38b9b0..00a171e6b5f 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -24,7 +24,6 @@ /// `.await` the value. /// /// [`Waker`]: ../task/struct.Waker.html -#[doc(spotlight)] #[must_use = "futures do nothing unless you `.await` or poll them"] #[stable(feature = "futures_api", since = "1.36.0")] #[lang = "future_trait"] diff --git a/src/libcore/iter/traits/iterator.rs b/src/libcore/iter/traits/iterator.rs index 1d055676c77..83c9a5fbe15 100644 --- a/src/libcore/iter/traits/iterator.rs +++ b/src/libcore/iter/traits/iterator.rs @@ -92,7 +92,6 @@ fn _assert_is_object_safe(_: &dyn Iterator) {} label = "`{Self}` is not an iterator", message = "`{Self}` is not an iterator" )] -#[doc(spotlight)] #[must_use = "iterators are lazy and do nothing unless consumed"] pub trait Iterator { /// The type of the elements being iterated over. diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index bca96b77812..21806fad8ff 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -90,7 +90,6 @@ #![feature(custom_inner_attributes)] #![feature(decl_macro)] #![feature(doc_cfg)] -#![feature(doc_spotlight)] #![feature(extern_types)] #![feature(fundamental)] #![feature(intrinsics)] diff --git a/src/librustc_ast_passes/feature_gate.rs b/src/librustc_ast_passes/feature_gate.rs index 3c924847a73..2146eec338f 100644 --- a/src/librustc_ast_passes/feature_gate.rs +++ b/src/librustc_ast_passes/feature_gate.rs @@ -245,7 +245,6 @@ macro_rules! gate_doc { ($($name:ident => $feature:ident)*) => { include => external_doc cfg => doc_cfg masked => doc_masked - spotlight => doc_spotlight alias => doc_alias keyword => doc_keyword ); diff --git a/src/librustc_span/symbol.rs b/src/librustc_span/symbol.rs index 97708d91d7e..42e92b60d69 100644 --- a/src/librustc_span/symbol.rs +++ b/src/librustc_span/symbol.rs @@ -269,7 +269,6 @@ doc_cfg, doc_keyword, doc_masked, - doc_spotlight, doctest, document_private_items, dotdoteq_in_patterns, @@ -688,7 +687,6 @@ Some, specialization, speed, - spotlight, sse4a_target_feature, stable, staged_api, diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 67b382c7a84..1f88a6a5576 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -497,7 +497,6 @@ pub(crate) fn default_write_vectored(write: F, bufs: &[IoSlice<'_>]) -> Resul /// [`&str`]: ../../std/primitive.str.html /// [slice]: ../../std/primitive.slice.html #[stable(feature = "rust1", since = "1.0.0")] -#[doc(spotlight)] pub trait Read { /// Pull some bytes from this source into the specified buffer, returning /// how many bytes were read. @@ -1228,7 +1227,6 @@ pub fn initialize(&self, buf: &mut [u8]) { /// /// [`write_all`]: #method.write_all #[stable(feature = "rust1", since = "1.0.0")] -#[doc(spotlight)] pub trait Write { /// Write a buffer into this writer, returning how many bytes were written. /// diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 799585ffc0a..f482eb6b2ee 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -256,7 +256,6 @@ #![feature(doc_cfg)] #![feature(doc_keyword)] #![feature(doc_masked)] -#![feature(doc_spotlight)] #![feature(dropck_eyepatch)] #![feature(duration_constants)] #![feature(exact_size_is_empty)] -- 2.44.0