Skip to content

Commit

Permalink
Make late_bound_lifetime_arguments lint warn-by-default
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Jul 17, 2017
1 parent 46f427b commit 39114f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ declare_lint! {

declare_lint! {
pub LATE_BOUND_LIFETIME_ARGUMENTS,
Deny,
Warn,
"detects generic lifetime arguments in path segments with late bound lifetime parameters"
}

Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/method-call-lifetime-args-lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![deny(late_bound_lifetime_arguments)]
#![allow(unused)]

struct S;
Expand Down

0 comments on commit 39114f9

Please sign in to comment.