Skip to content

Commit a89c62c

Browse files
authored
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 17bd76a and I'm not sure why it is still there.
2 parents b2299b2 + 5ed4237 commit a89c62c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_errors/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ impl<'a> WritableDst<'a> {
16451645
}
16461646
}
16471647
Style::Quotation => {}
1648-
Style::OldSchoolNoteText | Style::MainHeaderMsg => {
1648+
Style::MainHeaderMsg => {
16491649
spec.set_bold(true);
16501650
if cfg!(windows) {
16511651
spec.set_intense(true)

src/librustc_errors/snippet.rs

-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ pub enum Style {
188188
UnderlineSecondary,
189189
LabelPrimary,
190190
LabelSecondary,
191-
OldSchoolNoteText,
192191
NoStyle,
193192
Level(Level),
194193
Highlight,

0 commit comments

Comments
 (0)