]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #101569 - m-ou-se:alloc-no-rexport-argumentv1, r=thomcc
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Mon, 30 Jan 2023 09:41:44 +0000 (15:11 +0530)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 09:41:44 +0000 (15:11 +0530)
Don't re-export private/unstable ArgumentV1 from `alloc`.

The `alloc::fmt::ArgumentV1` re-export was marked as `#[stable]` even though the original `core::fmt::ArgumentV1` is `#[unstable]` (and `#[doc(hidden)]`).

(It wasn't usable though:

```
error[E0658]: use of unstable library feature 'fmt_internals': internal to format_args!
 --> src/main.rs:4:12
  |
4 |     let _: alloc::fmt::ArgumentV1 = todo!();
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(fmt_internals)]` to the crate attributes to enable
```
)

Part of #99012


Trivial merge