Auto merge of #51333 - GuillaumeGomez:reexport-fmt-alignment, r=SimonSapin

Reexport fmt::Alignment into std

Follow-up of #51078.
This commit is contained in:
bors 2018-06-06 17:01:56 +00:00
commit cb8ab33ed2
2 changed files with 3 additions and 2 deletions

View File

@ -531,6 +531,8 @@ pub use core::fmt::Error;
pub use core::fmt::{write, ArgumentV1, Arguments};
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
#[stable(feature = "fmt_flags_align", since = "1.28.0")]
pub use core::fmt::{Alignment};
use string;

View File

@ -1436,8 +1436,7 @@ impl<'a> Formatter<'a> {
/// ```
/// extern crate core;
///
/// use std::fmt;
/// use core::fmt::Alignment;
/// use std::fmt::{self, Alignment};
///
/// struct Foo;
///