about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-03-08 19:35:53 -0800
committerCamelid <camelidcamel@gmail.com>2021-03-15 13:59:54 -0700
commit34c6cee397183974b34a6e04c94b38202eb40caf (patch)
tree1780fe720a331dc9bcae1a0e4df3f0a25e5ca61d /compiler/rustc_span/src
parent2ccf06302c08d7d4911aad40e66a9a3ee731c6f9 (diff)
downloadrust-34c6cee397183974b34a6e04c94b38202eb40caf.tar.gz
rust-34c6cee397183974b34a6e04c94b38202eb40caf.zip
Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`
"spotlight" is not a very specific or self-explaining name.
Additionally, the dialog that it triggers is called "Notable traits".
So, "notable trait" is a better name.

* Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`
* Rename `#![feature(doc_spotlight)]` to `#![feature(doc_notable_trait)]`
* Update documentation
* Improve documentation
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 4fcb8b6c1b7..ca9ddce7223 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -476,6 +476,7 @@ symbols! {
         doc_cfg,
         doc_keyword,
         doc_masked,
+        doc_notable_trait,
         doc_spotlight,
         doctest,
         document_private_items,
@@ -799,6 +800,7 @@ symbols! {
         noreturn,
         nostack,
         not,
+        notable_trait,
         note,
         object_safe_for_dispatch,
         of,