Make unused_associated_type_bounds's lint level changeable
This commit is contained in:
parent
307b5ffff3
commit
25e3785b86
2 changed files with 4 additions and 0 deletions
|
|
@ -3409,6 +3409,7 @@ declare_lint_pass! {
|
|||
UNSTABLE_SYNTAX_PRE_EXPANSION,
|
||||
UNSUPPORTED_CALLING_CONVENTIONS,
|
||||
UNUSED_ASSIGNMENTS,
|
||||
UNUSED_ASSOCIATED_TYPE_BOUNDS,
|
||||
UNUSED_ATTRIBUTES,
|
||||
UNUSED_CRATE_DEPENDENCIES,
|
||||
UNUSED_EXTERN_CRATES,
|
||||
|
|
|
|||
|
|
@ -11,4 +11,7 @@ fn foo(_: &dyn Foo<Bar = ()>) {}
|
|||
//~| WARN: unnecessary associated type bound for not object safe associated type
|
||||
//~| WARN: unnecessary associated type bound for not object safe associated type
|
||||
|
||||
#[allow(unused_associated_type_bounds)]
|
||||
fn bar(_: &dyn Foo<Bar = ()>) {}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue