Skip to content

Commit 7d24084

Browse files
authored
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
2 parents f162de9 + 22d6df9 commit 7d24084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ pub use core::fmt::Alignment;
558558
#[stable(feature = "rust1", since = "1.0.0")]
559559
pub use core::fmt::Error;
560560
#[stable(feature = "rust1", since = "1.0.0")]
561-
pub use core::fmt::{write, ArgumentV1, Arguments};
561+
pub use core::fmt::{write, Arguments};
562562
#[stable(feature = "rust1", since = "1.0.0")]
563563
pub use core::fmt::{Binary, Octal};
564564
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)