Skip to content

Commit

Permalink
Rollup merge of #124926 - Alexendoo:feature-maybe-incorrect, r=est31
Browse files Browse the repository at this point in the history
Make `#![feature]` suggestion MaybeIncorrect

Fixes rust-lang/rust-clippy#12784

The `unstable_name_collisions` lint uses `disabled_nightly_features` to mention the feature name, but accepting the suggestion would result in an ambiguity error

There are other calls where accepting the feature gate would fix code when ran with `cargo fix --broken-code`, though it's not always desirable to add a feature gate even if the user is currently on nightly so MaybeIncorrect seems appropriate
  • Loading branch information
matthiaskrgr committed May 9, 2024
2 parents 88427f8 + ede2166 commit 60957b6
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 60957b6

Please sign in to comment.