Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clippy_lints/src/attrs/useless_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, item: &Item, attrs: &[Attribute]) {
sym::ambiguous_glob_reexports
| sym::dead_code
| sym::deprecated
| sym::deprecated_in_future
| sym::hidden_glob_reexports
| sym::unreachable_pub
| sym::unused
Expand Down
1 change: 1 addition & 0 deletions clippy_utils/src/sym.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ generate! {
cycle,
cyclomatic_complexity,
de,
deprecated_in_future,
diagnostics,
disallowed_types,
drain,
Expand Down
10 changes: 10 additions & 0 deletions tests/ui/useless_attribute.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,13 @@ pub mod redundant_imports_issue {

empty!();
}

pub mod issue15636 {
pub mod f {
#[deprecated(since = "TBD")]
pub mod deprec {}
}

#[allow(deprecated_in_future)]
pub use f::deprec;
}
10 changes: 10 additions & 0 deletions tests/ui/useless_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,13 @@ pub mod redundant_imports_issue {

empty!();
}

pub mod issue15636 {
pub mod f {
#[deprecated(since = "TBD")]
pub mod deprec {}
}

#[allow(deprecated_in_future)]
pub use f::deprec;
}
Loading