You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #101569 - m-ou-se:alloc-no-rexport-argumentv1, r=thomcc
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
Copy file name to clipboardExpand all lines: tests/ui/fmt/ifmt-unimpl.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ LL | format!("{:X}", "3");
15
15
NonZeroIsize
16
16
and 21 others
17
17
= note: required for `&str` to implement `UpperHex`
18
-
note: required by a bound in `ArgumentV1::<'a>::new_upper_hex`
18
+
note: required by a bound in `core::fmt::ArgumentV1::<'a>::new_upper_hex`
19
19
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
20
20
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `arg_new` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments