Skip to content

Commit cb8ab33

Browse files
committed
Auto merge of #51333 - GuillaumeGomez:reexport-fmt-alignment, r=SimonSapin
Reexport fmt::Alignment into std Follow-up of #51078.
2 parents 35aeecb + 8049848 commit cb8ab33

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/liballoc/fmt.rs

+2
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ pub use core::fmt::Error;
531531
pub use core::fmt::{write, ArgumentV1, Arguments};
532532
#[stable(feature = "rust1", since = "1.0.0")]
533533
pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
534+
#[stable(feature = "fmt_flags_align", since = "1.28.0")]
535+
pub use core::fmt::{Alignment};
534536

535537
use string;
536538

src/libcore/fmt/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1436,8 +1436,7 @@ impl<'a> Formatter<'a> {
14361436
/// ```
14371437
/// extern crate core;
14381438
///
1439-
/// use std::fmt;
1440-
/// use core::fmt::Alignment;
1439+
/// use std::fmt::{self, Alignment};
14411440
///
14421441
/// struct Foo;
14431442
///

0 commit comments

Comments
 (0)