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 3, 2020
1 parent 2528fa3 commit d65d179
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc_typeck/check/demand.rs
Expand Up @@ -853,13 +853,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 d65d179

Please sign in to comment.