rust/library/alloc/src
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
..
boxed Implement some conversions using Box::clone_from_ref 2025-11-19 13:34:03 -06:00
collections Auto merge of #151228 - cyrgani:less-feature, r=jhpratt 2026-01-17 06:27:42 +00:00
ffi library: Fix typo in the documentatio of Cstring::from_vec_with_nul 2026-01-02 14:54:36 +01:00
raw_vec fix rustfmt and bless tidy/tests 2026-01-01 19:17:11 -05:00
vec remove reason = "new API" from #[unstable(...)] 2026-01-16 13:34:34 +00:00
wtf8 Stabilize char_max_len 2025-11-14 18:23:19 +03:00
alloc.rs address review comments; fix CI 2026-01-01 19:17:11 -05:00
borrow.rs alloc: Move Cow impl to existing ones 2026-01-02 20:40:04 +01:00
boxed.rs remove reason = "new API" from #[unstable(...)] 2026-01-16 13:34:34 +00:00
bstr.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
fmt.rs replace version placeholder 2025-12-19 15:04:30 -08:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Auto merge of #147893 - fee1-dead-contrib:constheapheapheap, r=oli-obk 2026-01-06 11:39:17 +00:00
macros.rs Streamline the format macro. 2025-04-28 06:56:13 +10:00
rc.rs Update tracking issue for PinCoerceUnsized 2025-12-17 20:26:41 +00:00
slice.rs Revert "avoid phi node for pointers flowing into Vec appends #130998" 2026-01-15 09:37:16 +08:00
str.rs optimization: Don't include ASCII characters in Unicode tables 2025-09-07 15:21:24 +02:00
string.rs remove reason = "new API" from #[unstable(...)] 2026-01-16 13:34:34 +00:00
sync.rs Update tracking issue for PinCoerceUnsized 2025-12-17 20:26:41 +00:00
task.rs Apply suggestion from @tisonkun 2026-01-07 09:31:59 +08:00