Skip to content

Commit

Permalink
update links and tracking issue for doc_spotlight
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus authored and GuillaumeGomez committed Nov 17, 2017
1 parent 831fd78 commit be68d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/doc/unstable-book/src/language-features/doc-spotlight.md
@@ -1,6 +1,6 @@
# `doc_spotlight`

The tracking issue for this feature is: [TODO]
The tracking issue for this feature is: [#45040]

The `doc_spotlight` feature allows the use of the `spotlight` parameter to the `#[doc]` attribute,
to "spotlight" a specific trait on the return values of functions. Adding a `#[doc(spotlight)]`
Expand All @@ -24,4 +24,7 @@ impl MyTrait for MyStruct {}
pub fn my_fn() -> MyStruct { MyStruct }
```

This feature was originally implemented in PR [TODO].
This feature was originally implemented in PR [#45039].

[#45040]: https://github.com/rust-lang/rust/issues/45040
[#45039]: https://github.com/rust-lang/rust/pull/45039
2 changes: 1 addition & 1 deletion src/libsyntax/feature_gate.rs
Expand Up @@ -382,7 +382,7 @@ declare_features! (
// #[doc(masked)]
(active, doc_masked, "1.21.0", Some(44027)),
// #[doc(spotlight)]
(active, doc_spotlight, "1.22.0", None),
(active, doc_spotlight, "1.22.0", Some(45040)),

// allow `#[must_use]` on functions and comparison operators (RFC 1940)
(active, fn_must_use, "1.21.0", Some(43302)),
Expand Down

0 comments on commit be68d34

Please sign in to comment.