diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-05-23 08:01:38 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-05-23 08:01:38 +0200 |
| commit | 5ed42379e3291ee0f119f814114e978444e2cbc7 (patch) | |
| tree | a047ef9a8481fdbd754570bad83ea5face684980 | |
| parent | 15ccaf77911d9261d0c254be8a3e878db84792c6 (diff) | |
| download | rust-5ed42379e3291ee0f119f814114e978444e2cbc7.tar.gz rust-5ed42379e3291ee0f119f814114e978444e2cbc7.zip | |
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.
| -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 59cbd65f05c..ca86eb69c2d 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, |
