Skip to content

Commit 3c0d2a7

Browse files
committed
rustc: Improve lint descriptions
Improves the description of `dead_code` and `unreachable_code` to clarify the difference between them.
1 parent d6eb719 commit 3c0d2a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/lint/builtin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,10 +1585,10 @@ declare_lint!(pub UNUSED_ASSIGNMENTS, Warn,
15851585
"detect assignments that will never be read")
15861586

15871587
declare_lint!(pub DEAD_CODE, Warn,
1588-
"detect piece of code that will never be used")
1588+
"detect unused, unexported items")
15891589

15901590
declare_lint!(pub UNREACHABLE_CODE, Warn,
1591-
"detects unreachable code")
1591+
"detects unreachable code paths")
15921592

15931593
declare_lint!(pub WARNINGS, Warn,
15941594
"mass-change the level for lints which produce warnings")

0 commit comments

Comments
 (0)