Say "doesn't" instead of "wouldn't" in convert message
This commit is contained in:
parent
094f14c554
commit
8a6831a7fd
18 changed files with 176 additions and 176 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue