Skip to content

Commit 52418d6

Browse files
use suggestion_short in LintDiagnostic
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
1 parent 98fb65e commit 52418d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ pub struct UnusedExternCrate {
337337
#[lint(typeck::extern_crate_not_idiomatic)]
338338
pub struct ExternCrateNotIdiomatic {
339339
#[primary_span]
340-
#[suggestion(applicability = "machine-applicable", code = "{suggestion_code}")]
340+
#[suggestion_short(applicability = "machine-applicable", code = "{suggestion_code}")]
341341
pub span: Span,
342342
pub msg_code: String,
343343
pub suggestion_code: String,

0 commit comments

Comments
 (0)