summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-21 00:04:27 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-21 09:27:37 -0800
commit40e1f7c6ba14b7a60d6d5abb0e86c7c3257ce802 (patch)
treeae0e723fc65bbb0d811d90b3baa1f7c9272b24c8 /src/libsyntax
parent3e5257f68f2411cbef54569a9340c5f22b2e65bb (diff)
parent84b8f318a54e32f8bce0db0759bdcd3c562b97b3 (diff)
downloadrust-40e1f7c6ba14b7a60d6d5abb0e86c7c3257ce802.tar.gz
rust-40e1f7c6ba14b7a60d6d5abb0e86c7c3257ce802.zip
rollup merge of #20080: seanmonstar/new-show-syntax
First step of #20013. This will allow (after a snapshot) to change all the debug strings from `{}` to `{:?}`.

r? @alexcrichton
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/format.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs
index 5d595474e9c..95c7fcc564a 100644
--- a/src/libsyntax/ext/format.rs
+++ b/src/libsyntax/ext/format.rs
@@ -654,6 +654,7 @@ impl<'a, 'b> Context<'a, 'b> {
             Known(ref tyname) => {
                 match tyname.as_slice() {
                     ""  => "Show",
+                    "?" => "Show",
                     "e" => "LowerExp",
                     "E" => "UpperExp",
                     "o" => "Octal",