Cannot use feature(doc_spotlight)

I would like to try new spotlight doc attribute but, although i'm using nightly build, it seems that needed feature(doc_spotlight) is unknown:

error[E0635]: unknown feature `doc_spotlight`
--> src/lib.rs:1:12
 |
 | #![feature(doc_spotlight)]
 |            ^^^^^^^^^^^^^

Any ideas?

Which nightly are you using? Try a rustup update.

Hi,
I'm using the latest one:

1.44.0-nightly (3712e11a8 2020-04-12)

playground doesn't seem to recognize it either

https://github.com/rust-lang/rust/pull/69514

2 Likes

Hi,

many thanks, i don't check all PR and commits. I deduce that documentation is not updated.

If you've got time, would you be able to create a PR to update the bits of documentation you were using? That way you'll be able to help the next guy who's struggling with the doc_spotlight feature.

Hi,

I'm reading documentation at this URL:

https://doc.rust-lang.org/unstable-book/language-features/doc-spotlight.html

I don't know exactly which sources this documentation is built from. I only found that documentation in rust repo by checking out branch to-be-dev-nightly, but that branch doesn't exist anymore. Do you know what was the purpose of that branch?

It looks like this is already removed from the version of the Unstable Book that ships with the nightly toolchain.

Hi,

it would be interesting to know when and where is originated the documentation at this URL:

https://doc.rust-lang.org/unstable-book/language-features/doc-spotlight.html

and why it's not updated.

That's the version that ships with the stable toolchain, so it currently shows the documentation from Rust 1.42.0. It's updated every six weeks, when a new version of Rust is released.

Perhaps for the unstable book specifically, the web site should link to the nightly version instead of the stable version.

Update: Filed Link to nightly version of the Unstable Book by mbrubeck · Pull Request #1069 · rust-lang/www.rust-lang.org · GitHub

1 Like

Oh, i thought that should already be linked to nightly unstable book. Thank you very much for the PR.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.