Skip to content

Commit 5b63843

Browse files
committed
Merge PR #311
2 parents 941db8b + 4922b24 commit 5b63843

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rust-2024/never-type-fallback.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
## Summary
66

77
- Never type (`!`) to any type ("never-to-any") coercions fall back to never type (`!`) rather than to unit type (`()`).
8+
- The [`never_type_fallback_flowing_into_unsafe`] lint is now `deny` by default.
9+
10+
[`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/warn-by-default.html#never-type-fallback-flowing-into-unsafe
811

912
## Details
1013

@@ -54,6 +57,10 @@ In some cases your code might depend on the fallback type being `()`, so this ca
5457

5558
[coercion site]: ../../reference/type-coercions.html#coercion-sites
5659

60+
### `never_type_fallback_flowing_into_unsafe`
61+
62+
The default level of the [`never_type_fallback_flowing_into_unsafe`] lint has been raised from `warn` to `deny` in the 2024 Edition. This lint helps detect a particular interaction with the fallback to `!` and `unsafe` code which may lead to undefined behavior. See the link for a complete description.
63+
5764
## Migration
5865

5966
There is no automatic fix, but there is automatic detection of code that will be broken by the edition change. While still on a previous edition you will see warnings if your code will be broken.

0 commit comments

Comments
 (0)