1
Fork 0

Say "doesn't" instead of "wouldn't" in convert message

This commit is contained in:
Camelid 2020-09-29 19:27:58 -07:00
parent 094f14c554
commit 8a6831a7fd
18 changed files with 176 additions and 176 deletions

View file

@ -827,7 +827,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
let suggestion = format!("{}::from({})", checked_ty, lhs_src);
(lhs_expr.span, msg, suggestion)
} else {
let msg = format!("{} and panic if the converted value wouldn't fit", msg);
let msg = format!("{} and panic if the converted value doesn't fit", msg);
let suggestion =
format!("{}{}.try_into().unwrap()", prefix, with_opt_paren(&src));
(expr.span, msg, suggestion)