Skip to content

Commit d65d179

Browse files
Remove warning about UB
1 parent 2528fa3 commit d65d179

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc_typeck/check/demand.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -853,13 +853,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
853853
cast_suggestion,
854854
Applicability::MaybeIncorrect, // lossy conversion
855855
);
856-
err.warn(
857-
"if the rounded value cannot be represented by the target \
858-
integer type, including `Inf` and `NaN`, casting will cause \
859-
undefined behavior \
860-
(see issue #10184 <https://github.com/rust-lang/rust/issues/10184> \
861-
for more information)",
862-
);
863856
}
864857
true
865858
}

0 commit comments

Comments
 (0)