Skip to content

Commit 2efc1f8

Browse files
committed
Add Debug to DiagnosticStyledString
1 parent 78ccfd6 commit 2efc1f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_errors/diagnostic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct SubDiagnostic {
3636
pub render_span: Option<RenderSpan>,
3737
}
3838

39-
#[derive(PartialEq, Eq)]
39+
#[derive(Debug, PartialEq, Eq)]
4040
pub struct DiagnosticStyledString(pub Vec<StringPart>);
4141

4242
impl DiagnosticStyledString {
@@ -62,7 +62,7 @@ impl DiagnosticStyledString {
6262
}
6363
}
6464

65-
#[derive(PartialEq, Eq)]
65+
#[derive(Debug, PartialEq, Eq)]
6666
pub enum StringPart {
6767
Normal(String),
6868
Highlighted(String),

0 commit comments

Comments
 (0)