Make unused_associated_type_bounds's lint level changeable

This commit is contained in:
Oli Scherer 2023-06-16 12:46:28 +00:00
parent 307b5ffff3
commit 25e3785b86
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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() {}