diff options
| author | varkor <github@varkor.com> | 2019-10-11 02:35:22 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-10-25 23:26:27 +0100 |
| commit | 94c4dd990296df030f0decffc9a4751105f3e603 (patch) | |
| tree | 3f2666a49bdd72ac83f04763c9886d5ea520780a /src/librustc/lint | |
| parent | 7f3c8438e04461e05d71a784a2f582dadf14e5d6 (diff) | |
| download | rust-94c4dd990296df030f0decffc9a4751105f3e603.tar.gz rust-94c4dd990296df030f0decffc9a4751105f3e603.zip | |
Emit warning for ignored #[inline] on trait method prototypes
Diffstat (limited to 'src/librustc/lint')
| -rw-r--r-- | src/librustc/lint/builtin.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 15598b60f5c..5c871bb6b69 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -69,6 +69,12 @@ declare_lint! { } declare_lint! { + pub UNUSED_ATTRIBUTES, + Warn, + "detects attributes that were not used by the compiler" +} + +declare_lint! { pub UNREACHABLE_CODE, Warn, "detects unreachable code paths", |
