diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-08-02 13:46:39 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2016-08-13 21:37:09 +0800 |
| commit | f0a8b6d43f26907ac7d7abc35510878f61551fbf (patch) | |
| tree | fb4921c105c71850b888b3dfcf06d833e8532829 /src/libcore/fmt | |
| parent | 5096a8c5c01f8d1d7edece23bab6898bd3016f2c (diff) | |
| download | rust-f0a8b6d43f26907ac7d7abc35510878f61551fbf.tar.gz rust-f0a8b6d43f26907ac7d7abc35510878f61551fbf.zip | |
Minor fixups based on @eddyb's feedback
Mainly, remove mk_empty() method and replace with tcx.types.empty
Diffstat (limited to 'src/libcore/fmt')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 60862334846..15fb950b143 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -1365,7 +1365,7 @@ fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperEx // Note: This macro is a temporary hack that can be remove once we are building with a compiler // that supports `!` -macro_rules! argh { +macro_rules! not_stage0 { () => { #[unstable(feature = "bang_type", issue = "35121")] impl Debug for ! { @@ -1384,7 +1384,7 @@ macro_rules! argh { } #[cfg(not(stage0))] -argh!(); +not_stage0!(); #[stable(feature = "rust1", since = "1.0.0")] impl Debug for bool { |
