diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-23 08:37:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-23 08:37:19 +0200 |
| commit | a89c62ca2b3f019850da20cde89669593e2edf39 (patch) | |
| tree | b84d7541e8af9960db09cad4e071305315bec158 /src/librustc_errors | |
| parent | b2299b268986f1de6a23611c220f9788f592ca40 (diff) | |
| parent | 5ed42379e3291ee0f119f814114e978444e2cbc7 (diff) | |
| download | rust-a89c62ca2b3f019850da20cde89669593e2edf39.tar.gz rust-a89c62ca2b3f019850da20cde89669593e2edf39.zip | |
Rollup merge of #61073 - phansch:remove_unused_annotation_style, r=matthewjasper
librustc_errors: Remove unused annotation style `OldSchoolNoteText` I could not find any references to it and the `snippet` module does not seem to be exported publicly, so I think it can be safely removed. This was originally removed in 17bd76a51 and I'm not sure why it is still there.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 | ||||
| -rw-r--r-- | src/librustc_errors/snippet.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index b56162deaf1..890d2c5ce0b 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1645,7 +1645,7 @@ impl<'a> WritableDst<'a> { } } Style::Quotation => {} - Style::OldSchoolNoteText | Style::MainHeaderMsg => { + Style::MainHeaderMsg => { spec.set_bold(true); if cfg!(windows) { spec.set_intense(true) diff --git a/src/librustc_errors/snippet.rs b/src/librustc_errors/snippet.rs index a0af604026d..47ba22d3d25 100644 --- a/src/librustc_errors/snippet.rs +++ b/src/librustc_errors/snippet.rs @@ -188,7 +188,6 @@ pub enum Style { UnderlineSecondary, LabelPrimary, LabelSecondary, - OldSchoolNoteText, NoStyle, Level(Level), Highlight, |
