Skip to content

v0.42.0

Choose a tag to compare

@github-actions github-actions released this 05 Jul 15:03
· 129 commits to main since this release
864bfd7

In this release

  • 13 new lints, for a total of 177
  • Spotlight: #[target_feature] lints
  • Bugfix: false-positive sealed trait lints

This release requires Rust 1.85+ both to install (MSRV) and at runtime. Future releases will require Rust 1.87+.

Spotlight: #[target_feature] lints

Check out this in-depth look at the SemVer and soundness surprises behind this attribute:
Unsoundness and accidental features in the #[target_feature] attribute

New lints

We added new 13 lints across several categories, including 12 lints around #[target_feature] and one lint about an additive-only change. Some of the new lints are error-by-default, while others are warnings meant to flag changes deserving closer review, or even opt-in only and disabled by default while we do more work to improve their user experience.

API breakage:

  • safe_function_requires_more_target_features
  • safe_function_target_feature_added
  • safe_inherent_method_requires_more_target_features
  • safe_inherent_method_target_feature_added
  • trait_method_target_feature_removed
  • unsafe_function_requires_more_target_features
  • unsafe_function_target_feature_added
  • unsafe_inherent_method_requires_more_target_features
  • unsafe_inherent_method_target_feature_added
  • unsafe_trait_method_requires_more_target_features
  • unsafe_trait_method_target_feature_added
  • pub_api_sealed_trait_method_target_feature_removed (warn-by-default)

Additive-only API changes (opt-in only; more work required):

  • exhaustive_enum_added

All merged PRs

New Contributors

Full Changelog: v0.41.0...v0.42.0