Skip to content

Commit 4914e9d

Browse files
committed
Add back the link for never_type_fallback_flowing_into_unsafe
This adds back the link removed in #377 now that rust-lang/rust#146167 has marged.
1 parent e2ed891 commit 4914e9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Summary
44

55
- Never type (`!`) to any type ("never-to-any") coercions fall back to never type (`!`) rather than to unit type (`()`).
6-
- The `never_type_fallback_flowing_into_unsafe` lint is now `deny` by default.
6+
- The [`never_type_fallback_flowing_into_unsafe`] lint is now `deny` by default.
77

8-
<!-- [`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/error-by-default.html#never-type-fallback-flowing-into-unsafe -->
8+
[`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/deny-by-default.html#never-type-fallback-flowing-into-unsafe
99

1010
## Details
1111

@@ -57,7 +57,7 @@ In some cases your code might depend on the fallback type being `()`, so this ca
5757

5858
### `never_type_fallback_flowing_into_unsafe`
5959

60-
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.
60+
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.
6161

6262
## Migration
6363

0 commit comments

Comments
 (0)