rust/src/doc
bors 844f13103a Auto merge of #151228 - cyrgani:less-feature, r=jhpratt
remove multiple unhelpful `reason = "..."` values from `#[unstable(...)]` invocations

The vast majority of `#[unstable()]` attributes already has no explicit reason specified. This PR removes the `reason = "..."` value for the following unhelpful or meaningless reasons: 
* "recently added"
* "new API"
* "recently redesigned"
* "unstable"

An example of how the message looks with and without a reason:

```rust
fn main() {
    Vec::<()>::into_parts;
    Vec::<()>::const_make_global;
}
```

```
error[E0658]: use of unstable library feature `box_vec_non_null`: new API
 --> src/main.rs:2:5
  |
2 |     Vec::<()>::into_parts;
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #130364 <https://github.com/rust-lang/rust/issues/130364> for more information
  = help: add `#![feature(box_vec_non_null)]` to the crate attributes to enable
  = note: this compiler was built on 2026-01-15; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `const_heap`
 --> src/main.rs:3:5
  |
3 |     Vec::<()>::const_make_global;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #79597 <https://github.com/rust-lang/rust/issues/79597> for more information
  = help: add `#![feature(const_heap)]` to the crate attributes to enable
  = note: this compiler was built on 2026-01-15; consider upgrading it if it is out of date
```

Most of the remaining reasons after this are something similar to "this is an implementation detail for XYZ" or "this is not public". If this PR is approved, I'll look into those next. 

The PR also removes the `fd_read` feature gate. It only consists of one attribute applied to an implementation inside a module that is already private and unstable and should not be needed.
2026-01-17 06:27:42 +00:00
..
book@39aeceaa3a Update to mdbook 0.5 2025-12-12 08:07:53 -08:00
edition-guide@c3c0f0b3da Update to mdbook 0.5 2025-12-12 08:07:53 -08:00
embedded-book@fe88fbb683 Update books 2025-07-14 19:01:40 +02:00
man use new term in description of --target 2025-12-23 23:35:58 +02:00
nomicon@050c002a36 Update books 2026-01-12 18:01:10 +01:00
reference@28b5a54419 Update books 2026-01-12 18:01:10 +01:00
rust-by-example@8de6ff8113 Update books 2026-01-12 18:01:10 +01:00
rustc armv7-unknown-linux-uclibceabihf.md: Update toolchain download link 2026-01-13 04:17:51 +01:00
rustc-dev-guide sembr src/tests/perf.md 2026-01-12 22:26:55 +02:00
rustdoc Update to mdbook 0.5 2025-12-12 08:07:53 -08:00
style-guide Update to mdbook 0.5 2025-12-12 08:07:53 -08:00
unstable-book Auto merge of #151228 - cyrgani:less-feature, r=jhpratt 2026-01-17 06:27:42 +00:00
complement-design-faq.md
complement-lang-faq.md
complement-project-faq.md
favicon.inc fix: offline rustdoc html missing favicon 2025-09-04 00:03:54 +05:30
footer.inc avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
full-toc.inc
grammar.md
guide-crates.md
guide-error-handling.md
guide-ffi.md
guide-macros.md
guide-ownership.md
guide-plugins.md Remove support for compiler plugins. 2023-11-04 08:50:46 +11:00
guide-pointers.md
guide-strings.md
guide-tasks.md
guide-testing.md
guide-unsafe.md
guide.md
index.md rustc-dev-guide :3 2025-08-14 17:11:58 +02:00
intro.md
not_found.md rustdoc: consistentify #TOC and #ModNav to lowercase 2024-08-20 16:51:40 -07:00
redirect.inc fix: offline rustdoc html missing favicon 2025-09-04 00:03:54 +05:30
reference.md
robots.txt add sitemap to rust docs 2025-04-09 12:43:06 -05:00
rust.css Fix heading anchors in doc pages. 2024-03-18 09:13:18 -07:00
rust.md
rustdoc.md fix the link in rustdoc.md 2025-07-07 15:12:37 +00:00
sitemap.txt add sitemap to rust docs 2025-04-09 12:43:06 -05:00
tutorial.md
version_info.html.template