Skip to content

Commit

Permalink
Remove warning about UB
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed May 6, 2020
1 parent d4f31b4 commit f63b8bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc_typeck/check/demand.rs
Expand Up @@ -909,13 +909,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
cast_suggestion,
Applicability::MaybeIncorrect, // lossy conversion
);
err.warn(
"if the rounded value cannot be represented by the target \
integer type, including `Inf` and `NaN`, casting will cause \
undefined behavior \
(see issue #10184 <https://github.com/rust-lang/rust/issues/10184> \
for more information)",
);
}
true
}
Expand Down

0 comments on commit f63b8bf

Please sign in to comment.