v0.42.0
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_featuressafe_function_target_feature_addedsafe_inherent_method_requires_more_target_featuressafe_inherent_method_target_feature_addedtrait_method_target_feature_removedunsafe_function_requires_more_target_featuresunsafe_function_target_feature_addedunsafe_inherent_method_requires_more_target_featuresunsafe_inherent_method_target_feature_addedunsafe_trait_method_requires_more_target_featuresunsafe_trait_method_target_feature_addedpub_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
- Update FAQ section on MSRV policy. by @obi1kenobi in #1258
- Weekly
cargo updateof dependencies by @obi1kenobi in #1259 - feat: check for minimum possible semver bump by @Frank-III in #1237
- Weekly
cargo updateof dependencies by @obi1kenobi in #1261 - Drop support for Rust 1.84. New MSRV is 1.85. by @obi1kenobi in #1257
- Weekly
cargo updateof dependencies by @obi1kenobi in #1264 - Add next Rust minor to test matrix by @obi1kenobi in #1266
- Weekly
cargo updateof dependencies by @obi1kenobi in #1270 - Weekly
cargo updateof dependencies by @obi1kenobi in #1273 - Weekly
cargo updateof dependencies by @obi1kenobi in #1277 - Fix error message when registry version is not found. by @obi1kenobi in #1280
- [Witness Generation] Add unstable witness program flag by @GlitchlessCode in #1276
- Add support for rustdoc JSON format v46. by @obi1kenobi in #1282
- Weekly
cargo updateof dependencies by @obi1kenobi in #1284 - Upgrade tame-index and gix by @kornelski in #1287
- Don't change current_dir when running cargo by @kornelski in #1290
- Collect crates before running reports by @kornelski in #1289
- Weekly
cargo updateof dependencies by @obi1kenobi in #1294 - Update to
trustfall_rustdocversion w/#[target_feature]data. by @obi1kenobi in #1295 - Enable environment variable overrides for git repo discovery by @PigeonF in #1269
- Touch up the README. by @obi1kenobi in #1296
- Fix doc comment formatting by @obi1kenobi in #1298
- Fix color choice for stderr by @obi1kenobi in #1299
- Fix typo in CONTRIBUTING by @obi1kenobi in #1300
- Add
exhaustive_enum_addedlint. by @shreyans413 in #1189 - Add conflict checks for current_rustdoc by @obi1kenobi in #1301
- Add
unsafe_function_target_feature_addedlint by @obi1kenobi in #1302 - Add scripts and CI job for prebuilt test rustdocs by @obi1kenobi in #1305
- Add
unsafe_trait_method_target_feature_addedlint by @obi1kenobi in #1304 - Update CI matrix updater by @obi1kenobi in #1308
- Fix artifact retrieval by @obi1kenobi in #1310
- Add workflow to automate snapshot updates by @obi1kenobi in #1309
- Add lint for inherent methods gaining target features by @obi1kenobi in #1311
- Fix the
download_prebuilt_test_rustdocs.shscript download logic. by @obi1kenobi in #1312 - Remove stray
set -xin the downloader script. by @obi1kenobi in #1313 - Weekly
cargo updateof dependencies by @obi1kenobi in #1314 - Add
function_requires_more_target_featureslint by @obi1kenobi in #1316 - Add
trait_method_requires_more_target_featureslint by @obi1kenobi in #1315 - Fix Handlebars repeat helper context cleanup by @obi1kenobi in #1317
- Fix typo in test rustdocs downloader. by @obi1kenobi in #1318
- Fix cache settings None case by @obi1kenobi in #1319
- Save downloaded rustdoc JSONs artifact to disk. by @obi1kenobi in #1320
- Use artifacts for CI binaries by @obi1kenobi in #1321
- Rename lint and test crate with unsafe prefix by @obi1kenobi in #1323
- Rename trait_method_requires_more_target_features lint by @obi1kenobi in #1325
- Rename function target feature lint to unsafe variant by @obi1kenobi in #1324
- Add lint rename helper by @obi1kenobi in #1326
- Fixes for
unsafe_function_requires_more_target_featuresby @obi1kenobi in #1328 - Fix edge cases in
unsafe_inherent_method_requires_more_target_featuresby @obi1kenobi in #1327 - Fixes for "unsafe became safe" for remaining feature-related lints. by @obi1kenobi in #1329
- Add
safe_function_target_feature_addedlint by @obi1kenobi in #1303 - Add
safe_inherent_method_target_feature_addedlint by @obi1kenobi in #1306 - Add
unsafe_inherent_method_target_feature_addedlint by @obi1kenobi in #1307 - [Witness Generation] Add
InheritedValueinheritance by @GlitchlessCode in #1330 - Update
trustfall_rustdocto support rustdoc v48 and drop v46. by @obi1kenobi in #1331 - Add safe_inherent_method_requires_more_target_features lint by @obi1kenobi in #1333
- Add safe_function_requires_more_target_features lint by @obi1kenobi in #1332
- Reset mtimes and output user-facing messages in rustdoc downloader. by @obi1kenobi in #1335
- Parallelize rustdoc regeneration script by @obi1kenobi in #1322
- Add user-agent string to
curlofcrates.ioAPI. by @obi1kenobi in #1336 - Add trait_method_target_feature_removed lint by @obi1kenobi in #1337
- Parallelize metadata generation by @obi1kenobi in #1338
- Add
pub_api_sealed_trait_method_target_feature_removedlint. by @obi1kenobi in #1339 - Weekly
cargo updateof dependencies by @obi1kenobi in #1340 - Use
trustfall_rustdoc v0.27supporting the latest beta's rustdoc. by @obi1kenobi in #1343 - Fix lint to latest stable Rust's standard. by @obi1kenobi in #1347
- Fix more linty code. by @obi1kenobi in #1348
- Add next Rust minor to test matrix by @obi1kenobi in #1345
- [Witness Generation] Update
InheritedValuekey to anArc<str>by @GlitchlessCode in #1349 - If a
#[target_feature]fn was never callable on a triple, don't lint on it. by @obi1kenobi in #1350 - [Witness Generation] Add witness query system & witness text generation by @GlitchlessCode in #1342
- Weekly
cargo updateof dependencies by @obi1kenobi in #1351 - Weekly
cargo updateof dependencies by @obi1kenobi in #1357 - Release v0.42.0. by @obi1kenobi in #1358
New Contributors
- @kornelski made their first contribution in #1287
- @PigeonF made their first contribution in #1269
Full Changelog: v0.41.0...v0.42.0