Skip to content

Commit b3d744c

Browse files
committed
add unused_braces, lint anon_const
1 parent e0a0835 commit b3d744c

File tree

2 files changed

+366
-129
lines changed

2 files changed

+366
-129
lines changed

src/librustc_lint/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ macro_rules! early_lint_passes {
104104
$args,
105105
[
106106
UnusedParens: UnusedParens,
107+
UnusedBraces: UnusedBraces,
107108
UnusedImportBraces: UnusedImportBraces,
108109
UnsafeCode: UnsafeCode,
109110
AnonymousParameters: AnonymousParameters,
@@ -275,6 +276,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
275276
UNUSED_FEATURES,
276277
UNUSED_LABELS,
277278
UNUSED_PARENS,
279+
UNUSED_BRACES,
278280
REDUNDANT_SEMICOLONS
279281
);
280282

0 commit comments

Comments
 (0)