diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index 87cf3c544297..d453a90950bb 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -576,7 +576,7 @@ pub fn multispan_sugg(db: &mut DiagnosticBuilder, help_msg: String, sugg: &[(Spa let sub = rustc_errors::SubDiagnostic { level: rustc_errors::Level::Help, - message: help_msg, + message: vec![(help_msg, rustc_errors::snippet::Style::LabelPrimary)], span: MultiSpan::new(), render_span: Some(sugg), };