We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4f8d9 commit e248338Copy full SHA for e248338
compiler/rustc_error_messages/locales/en-US/lint.ftl
@@ -281,3 +281,5 @@ lint-path-statement-no-effect = path statement with no effect
281
282
lint-unused-delim = unnecessary {$delim} around {$item}
283
.suggestion = remove these {$delim}
284
+
285
+lint-unused-import-braces = braces around {$node} is unnecessary
compiler/rustc_lint/src/unused.rs
@@ -1118,7 +1118,7 @@ impl UnusedImportBraces {
1118
};
1119
1120
cx.struct_span_lint(UNUSED_IMPORT_BRACES, item.span, |lint| {
1121
- lint.build(&format!("braces around {} is unnecessary", node_name)).emit();
+ lint.build(fluent::lint::unused_import_braces).set_arg("node", node_name).emit();
1122
});
1123
}
1124
0 commit comments