You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,6 +57,12 @@ you can use `#[expect(clippy::undocumented_unsafe_blocks)]` as you transition,
61
57
ensuring that once all unsafe blocks are documented you can opt into denying
62
58
the lint to enforce it.
63
59
60
+
Clippy also has two lints to enforce the usage of this feature and help with
61
+
migrating existing attributes:
62
+
63
+
*[`clippy::allow_attributes`](https://rust-lang.github.io/rust-clippy/master/index.html#/allow_attributes) to restrict allow attributes in favor of `#[expect]` or to migrate `#[allow]` attributes to `#[expect]`
64
+
*[`clippy::allow_attributes_without_reason`](https://rust-lang.github.io/rust-clippy/master/index.html#/allow_attributes_without_reason) To require a reason for `#[allow]` attributes
65
+
64
66
### Lint reasons
65
67
66
68
Changing the lint level is often done for some particular reason. For example,
@@ -137,20 +139,31 @@ these types allows us to add more useful methods to these types, such as
137
139
This completes the transition started in [1.71](https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html#c-unwind-abi),
138
140
which added dedicated `"C-unwind"` (amongst other `-unwind` variants) ABIs for
139
141
when unwinding across the ABI boundary is expected. As of 1.81, the non-unwind
140
-
ABIs (e.g., `"C"`) will now abort on uncaught unwinds, closing the longstanding soundess problem.
142
+
ABIs (e.g., `"C"`) will now abort on uncaught unwinds, closing the longstanding
143
+
soundess problem.
141
144
142
145
Programs relying on unwinding should transition to using `-unwind` suffixed ABI
143
146
variants.
144
147
145
-
TODO: Check on status of https://github.com/rust-lang/rust/issues/123231
146
-
147
-
#### WASI target naming changed
148
+
#### WASI 0.1 target naming changed
148
149
149
-
Usage of the `wasm32-wasi` target will now issue a compiler warning and request
150
-
users switch to the `wasm32-wasip1` target instead. Both targets are the same,
151
-
`wasm32-wasi` is only being renamed, and this [change to the WASI target](https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html)
150
+
Usage of the `wasm32-wasi` target (which targets WASI 0.1) will now issue a
151
+
compiler warning and request users switch to the `wasm32-wasip1` target
152
+
instead. Both targets are the same, `wasm32-wasi` is only being renamed, and
153
+
this [change to the WASI target](https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html)
152
154
is being done to enable removing `wasm32-wasi` in January 2025.
153
155
156
+
The `wasm32-wasip2` target, which targets WASI 0.2, is now also a tier 2 target.
157
+
See [the announcement post](https://blog.rust-lang.org/2024/09/05/wasip2-tier-2.html) for more details.
158
+
159
+
#### Fixes CVE-2024-43402
160
+
161
+
`std::process::Command` now correctly escapes arguments when invoking batch
162
+
files on Windows in the presence of trailing whitespace or periods (which are
163
+
ignored and stripped by Windows).
164
+
165
+
See more details in the previous [announcement of this change](https://blog.rust-lang.org/2024/09/04/cve-2024-43402.html).
166
+
154
167
### Other changes
155
168
156
169
Check out everything that changed in [Rust](https://github.com/rust-lang/rust/releases/tag/1.81.0), [Cargo](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-181-2024-09-05), and [Clippy](https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-181).
0 commit comments