From 4aa1ede100ec582500b07b0c6716664156d23c4d Mon Sep 17 00:00:00 2001 From: Waffle Lapkin Date: Thu, 4 Sep 2025 16:59:14 +0200 Subject: [PATCH 1/2] link to never type fallback lint as deny by default --- src/rust-2024/never-type-fallback.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust-2024/never-type-fallback.md b/src/rust-2024/never-type-fallback.md index 12f48bba..83559ffe 100644 --- a/src/rust-2024/never-type-fallback.md +++ b/src/rust-2024/never-type-fallback.md @@ -5,7 +5,7 @@ - Never type (`!`) to any type ("never-to-any") coercions fall back to never type (`!`) rather than to unit type (`()`). - The [`never_type_fallback_flowing_into_unsafe`] lint is now `deny` by default. -[`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/warn-by-default.html#never-type-fallback-flowing-into-unsafe +[`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/error-by-default.html#never-type-fallback-flowing-into-unsafe ## Details From 28f245638fa26fed8072505ab9c6f20af41a60e1 Mon Sep 17 00:00:00 2001 From: "waffle.lapkin@gmail.com" Date: Wed, 1 Oct 2025 18:13:04 +0200 Subject: [PATCH 2/2] comment out link to never type fallback lint to allow level change --- src/rust-2024/never-type-fallback.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rust-2024/never-type-fallback.md b/src/rust-2024/never-type-fallback.md index 83559ffe..8ef2124a 100644 --- a/src/rust-2024/never-type-fallback.md +++ b/src/rust-2024/never-type-fallback.md @@ -3,9 +3,9 @@ ## Summary - Never type (`!`) to any type ("never-to-any") coercions fall back to never type (`!`) rather than to unit type (`()`). -- The [`never_type_fallback_flowing_into_unsafe`] lint is now `deny` by default. +- The `never_type_fallback_flowing_into_unsafe` lint is now `deny` by default. -[`never_type_fallback_flowing_into_unsafe`]: ../../rustc/lints/listing/error-by-default.html#never-type-fallback-flowing-into-unsafe + ## Details @@ -57,7 +57,7 @@ In some cases your code might depend on the fallback type being `()`, so this ca ### `never_type_fallback_flowing_into_unsafe` -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. +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. ## Migration