Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add trait_associated_type_default_removed lint #889

Merged

Conversation

mrnossiom
Copy link
Contributor

Lint for "non-sealed trait removed the default value for an associated type"

See #870

It seems like "associated type defaults" are a nightly feature (see tracking issue rust-lang/rust#29661). Does cargo-semver-checks support nightly features. Am I just wrong on what feature this lint should test?

Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're looking at the right thing, the feature just needed to be explicitly enabled in the test crates' source and our test infra will take it from there.

cc @PedroTurik this might be of interest to you too, since you've claimed the other lint that relies on associated type defaults.

@mrnossiom mrnossiom force-pushed the add-trait-associated-type-default-removed branch from 82e8930 to 7e587bf Compare August 28, 2024 07:15
Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done 🚀

@obi1kenobi obi1kenobi merged commit 2466f7c into obi1kenobi:main Aug 28, 2024
33 checks passed
@mrnossiom mrnossiom deleted the add-trait-associated-type-default-removed branch August 28, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants