Skip to content

Commit c5691a8

Browse files
committed
Change warning to error
1 parent 61b879c commit c5691a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/never_compat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl<'tcx> NeverCompatHandler<'tcx> {
398398

399399
let mut err = tcx
400400
.sess
401-
.struct_span_warn(span, "Fallback to `!` may introduce undefined behavior");
401+
.struct_span_err(span, "Fallback to `!` may introduce undefined behavior");
402402

403403
// There are two possible cases here:
404404
match var_origin.kind {

0 commit comments

Comments
 (0)