Skip to content

Commit f63b8bf

Browse files
Remove warning about UB
1 parent d4f31b4 commit f63b8bf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: src/librustc_typeck/check/demand.rs

-7
Original file line numberDiff line numberDiff line change
@@ -909,13 +909,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
909909
cast_suggestion,
910910
Applicability::MaybeIncorrect, // lossy conversion
911911
);
912-
err.warn(
913-
"if the rounded value cannot be represented by the target \
914-
integer type, including `Inf` and `NaN`, casting will cause \
915-
undefined behavior \
916-
(see issue #10184 <https://github.com/rust-lang/rust/issues/10184> \
917-
for more information)",
918-
);
919912
}
920913
true
921914
}

0 commit comments

Comments
 (0)