Skip to content

Commit 2744060

Browse files
WaffleLapkinwaffle.lapkin@gmail.com
authored andcommitted
deny never type lints by default
1 parent 94ecb52 commit 2744060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,7 +4100,7 @@ declare_lint! {
41004100
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
41014101
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
41024102
pub NEVER_TYPE_FALLBACK_FLOWING_INTO_UNSAFE,
4103-
Warn,
4103+
Deny,
41044104
"never type fallback affecting unsafe function calls",
41054105
@future_incompatible = FutureIncompatibleInfo {
41064106
reason: FutureIncompatibilityReason::EditionAndFutureReleaseSemanticsChange(Edition::Edition2024),
@@ -4155,7 +4155,7 @@ declare_lint! {
41554155
///
41564156
/// See [Tracking Issue for making `!` fall back to `!`](https://github.com/rust-lang/rust/issues/123748).
41574157
pub DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK,
4158-
Warn,
4158+
Deny,
41594159
"never type fallback affecting unsafe function calls",
41604160
@future_incompatible = FutureIncompatibleInfo {
41614161
reason: FutureIncompatibilityReason::EditionAndFutureReleaseError(Edition::Edition2024),

0 commit comments

Comments
 (0)