mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Make unused_associated_type_bounds
's lint level changeable
This commit is contained in:
parent
307b5ffff3
commit
25e3785b86
@ -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…
Reference in New Issue
Block a user