diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-28 09:24:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 16:04:24 -0700 |
| commit | cac7a2053aba7be214d5e58e13867089638a8f50 (patch) | |
| tree | 8c0af42bd2ab5237a19c04e9777e433805d600df /src/libsyntax/ext/tt | |
| parent | f9260d41d6e37653bf71b08a041be0310098716a (diff) | |
| download | rust-cac7a2053aba7be214d5e58e13867089638a8f50.tar.gz rust-cac7a2053aba7be214d5e58e13867089638a8f50.zip | |
std: Remove i18n/l10n from format!
* The select/plural methods from format strings are removed
* The # character no longer needs to be escaped
* The \-based escapes have been removed
* '{{' is now an escape for '{'
* '}}' is now an escape for '}'
Closes #14810
[breaking-change]
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 6607b6451c0..c4990255719 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -129,11 +129,13 @@ fn generic_extension(cx: &ExtCtxt, rhses: &[Rc<NamedMatch>]) -> Box<MacResult> { if cx.trace_macros() { - println!("{}! \\{ {} \\}", + println!("{}! {} {} {}", token::get_ident(name), + "{", print::pprust::tt_to_str(&TTDelim(Rc::new(arg.iter() .map(|x| (*x).clone()) - .collect())))); + .collect()))), + "}"); } // Which arm's failure should we report? (the one furthest along) |
