summary refs log tree commit diff
path: root/src/test/ui/numeric/numeric-cast-binop.stderr
AgeCommit message (Collapse)AuthorLines
2020-09-29Say "doesn't" instead of "wouldn't" in convert messageCamelid-62/+62
2020-09-29Add article after "to"Camelid-97/+97
Also added missing backtick in "you can cast" message.
2020-09-27Use correct article in help message for conversion or castCamelid-54/+54
Before it always used `an`; now it uses the correct article for the type.
2020-06-11fixup! Provide suggestion to convert numeric op LHS rather than unwrapping RHSAyaz Hafiz-132/+132
2020-06-11Provide suggestion to convert numeric op LHS rather than unwrapping RHSAyaz Hafiz-0/+1385
Given a code ```rust fn foo(x: u8, y: u32) -> bool { x > y } fn main() {} ``` it could be more helpful to provide a suggestion to do "u32::from(x)" rather than "y.try_into().unwrap()", since the latter may panic. We do this by passing the LHS of a binary expression up the stack into the coercion checker. Closes #73145