diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-05-19 01:07:44 -0400 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-05-20 16:10:40 -0500 |
| commit | 82fa0018c80c8f64cb1b446a7e59492d9ad97b1d (patch) | |
| tree | df9f62eca9ddf44392626a5f22ced00652c08004 /src/libsyntax/diagnostic.rs | |
| parent | 074799b4c586c521ba678a4dc3809cad1a872dfe (diff) | |
| download | rust-82fa0018c80c8f64cb1b446a7e59492d9ad97b1d.tar.gz rust-82fa0018c80c8f64cb1b446a7e59492d9ad97b1d.zip | |
Remove all unnecessary allocations (as flagged by lint)
Diffstat (limited to 'src/libsyntax/diagnostic.rs')
| -rw-r--r-- | src/libsyntax/diagnostic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs index 993fa612a27..21e2ad82b14 100644 --- a/src/libsyntax/diagnostic.rs +++ b/src/libsyntax/diagnostic.rs @@ -218,7 +218,7 @@ pub fn emit(cmsp: Option<(@codemap::CodeMap, span)>, msg: &str, lvl: level) { print_macro_backtrace(cm, sp); } None => { - print_diagnostic(~"", lvl, msg); + print_diagnostic("", lvl, msg); } } } @@ -296,7 +296,7 @@ fn print_macro_backtrace(cm: @codemap::CodeMap, sp: span) { print_diagnostic(*ss, note, fmt!("in expansion of %s!", ei.callee.name)); let ss = cm.span_to_str(ei.call_site); - print_diagnostic(ss, note, ~"expansion site"); + print_diagnostic(ss, note, "expansion site"); print_macro_backtrace(cm, ei.call_site); } } |
