diff options
| author | Urgau <urgau@numericable.fr> | 2025-08-16 11:17:19 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-08-24 00:03:54 +0200 |
| commit | 1da4959e54eaee2b3770301fe4902b65f7b97e9f (patch) | |
| tree | dca146edde6fdb78886fe94f83a3940fdfeb0983 /compiler | |
| parent | 02a67cc4a535fdb226a57a3d8d3ef32d68fd347c (diff) | |
| download | rust-1da4959e54eaee2b3770301fe4902b65f7b97e9f.tar.gz rust-1da4959e54eaee2b3770301fe4902b65f7b97e9f.zip | |
Prefer verbose suggestions for `integer_to_ptr_transmutes` lint
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index 5c91b36133b..426500dda4a 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -1561,7 +1561,8 @@ pub(crate) struct IntegerToPtrTransmutes<'tcx> { pub(crate) enum IntegerToPtrTransmutesSuggestion<'tcx> { #[multipart_suggestion( lint_suggestion_with_exposed_provenance, - applicability = "machine-applicable" + applicability = "machine-applicable", + style = "verbose" )] ToPtr { dst: Ty<'tcx>, @@ -1571,7 +1572,8 @@ pub(crate) enum IntegerToPtrTransmutesSuggestion<'tcx> { }, #[multipart_suggestion( lint_suggestion_with_exposed_provenance, - applicability = "machine-applicable" + applicability = "machine-applicable", + style = "verbose" )] ToRef { dst: Ty<'tcx>, |
