We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b879c commit c5691a8Copy full SHA for c5691a8
src/librustc_typeck/check/never_compat.rs
@@ -398,7 +398,7 @@ impl<'tcx> NeverCompatHandler<'tcx> {
398
399
let mut err = tcx
400
.sess
401
- .struct_span_warn(span, "Fallback to `!` may introduce undefined behavior");
+ .struct_span_err(span, "Fallback to `!` may introduce undefined behavior");
402
403
// There are two possible cases here:
404
match var_origin.kind {
0 commit comments