about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-06-03 17:04:48 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-06-03 17:04:48 +0200
commit804984836eb98fd61bc5f03aff8756a9c1cf2fa4 (patch)
tree35fa46a3ac3dfe7332e6687d8fcbd7e30e05be7f
parent3575be60eab140e69e5a75fe5c3b4119c2a17179 (diff)
downloadrust-804984836eb98fd61bc5f03aff8756a9c1cf2fa4.tar.gz
rust-804984836eb98fd61bc5f03aff8756a9c1cf2fa4.zip
Reexport fmt::Alignment into std
-rw-r--r--src/liballoc/fmt.rs2
-rw-r--r--src/libcore/fmt/mod.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs
index a4e5373d907..b49ec0ae252 100644
--- a/src/liballoc/fmt.rs
+++ b/src/liballoc/fmt.rs
@@ -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;
 
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
index 0515eeed30b..d91bf463383 100644
--- a/src/libcore/fmt/mod.rs
+++ b/src/libcore/fmt/mod.rs
@@ -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;
     ///