about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-10-14 11:32:15 -0700
committerAaron Turon <aturon@mozilla.com>2014-10-14 15:23:09 -0700
commit3c0d2a7c90a381fa0df977300f267bb96760b566 (patch)
tree6a6c17df0362466d43d93f2dc72049675e3b5a05
parentd6eb7197292c26853f9dd461e6732f636f433f48 (diff)
downloadrust-3c0d2a7c90a381fa0df977300f267bb96760b566.tar.gz
rust-3c0d2a7c90a381fa0df977300f267bb96760b566.zip
rustc: Improve lint descriptions
Improves the description of `dead_code` and `unreachable_code` to
clarify the difference between them.
-rw-r--r--src/librustc/lint/builtin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index fc62f44493e..76234c41637 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -1585,10 +1585,10 @@ declare_lint!(pub UNUSED_ASSIGNMENTS, Warn,
               "detect assignments that will never be read")
 
 declare_lint!(pub DEAD_CODE, Warn,
-              "detect piece of code that will never be used")
+              "detect unused, unexported items")
 
 declare_lint!(pub UNREACHABLE_CODE, Warn,
-              "detects unreachable code")
+              "detects unreachable code paths")
 
 declare_lint!(pub WARNINGS, Warn,
               "mass-change the level for lints which produce warnings")