diff options
| author | est31 <MTest31@outlook.com> | 2017-05-12 08:21:00 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-05-12 09:37:28 +0200 |
| commit | 80891f6e4725efc72c27e4f224123ec292fdd7d4 (patch) | |
| tree | 4debab43e1544d893a5757551449f24a0acbe8e9 /src/librustc_errors | |
| parent | 39bcd6f425426bfacd7de9fe0378df4bd9263d00 (diff) | |
| download | rust-80891f6e4725efc72c27e4f224123ec292fdd7d4.tar.gz rust-80891f6e4725efc72c27e4f224123ec292fdd7d4.zip | |
Remove some unused macros from the rust codebase
Removes unused macros from:
* libcore
* libcollections
The last use of these two macros was removed in commit
b64c9d56700e2c41207166fe8709711ff02488ff
when the char_range_at_reverse function was been removed.
* librustc_errors
Their last use was removed by commits
2f2c3e178325dc1837badcd7573c2c0905fab979
and 11dc974a38fd533aa692cea213305056cd3a6902.
* libsyntax_ext
* librustc_trans
Also, put the otry macro in back/msvc/mod.rs under the
same cfg argument as the places that use it.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 53999eb9138..34c138eca9e 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -95,21 +95,6 @@ struct FileWithAnnotatedLines { multiline_depth: usize, } - -/// Do not use this for messages that end in `\n` – use `println_maybe_styled` instead. See -/// `EmitterWriter::print_maybe_styled` for details. -macro_rules! print_maybe_styled { - ($dst: expr, $style: expr, $($arg: tt)*) => { - $dst.print_maybe_styled(format_args!($($arg)*), $style, false) - } -} - -macro_rules! println_maybe_styled { - ($dst: expr, $style: expr, $($arg: tt)*) => { - $dst.print_maybe_styled(format_args!($($arg)*), $style, true) - } -} - impl EmitterWriter { pub fn stderr(color_config: ColorConfig, code_map: Option<Rc<CodeMapper>>) -> EmitterWriter { if color_config.use_color() { |
