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
This commit is contained in:
commit
40e1f7c6ba
2 changed files with 2 additions and 0 deletions
|
@ -654,6 +654,7 @@ impl<'a, 'b> Context<'a, 'b> {
|
||||||
Known(ref tyname) => {
|
Known(ref tyname) => {
|
||||||
match tyname.as_slice() {
|
match tyname.as_slice() {
|
||||||
"" => "Show",
|
"" => "Show",
|
||||||
|
"?" => "Show",
|
||||||
"e" => "LowerExp",
|
"e" => "LowerExp",
|
||||||
"E" => "UpperExp",
|
"E" => "UpperExp",
|
||||||
"o" => "Octal",
|
"o" => "Octal",
|
||||||
|
|
|
@ -60,6 +60,7 @@ pub fn main() {
|
||||||
t!(format!("{}", 10i), "10");
|
t!(format!("{}", 10i), "10");
|
||||||
t!(format!("{}", 10i), "10");
|
t!(format!("{}", 10i), "10");
|
||||||
t!(format!("{}", 10u), "10");
|
t!(format!("{}", 10u), "10");
|
||||||
|
t!(format!("{:?}", true), "true");
|
||||||
t!(format!("{:o}", 10u), "12");
|
t!(format!("{:o}", 10u), "12");
|
||||||
t!(format!("{:x}", 10u), "a");
|
t!(format!("{:x}", 10u), "a");
|
||||||
t!(format!("{:X}", 10u), "A");
|
t!(format!("{:X}", 10u), "A");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue