about summary refs log tree commit diff
path: root/src/test/ui/numeric/numeric-cast-binop.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1719/+0
2022-12-08Point at LHS on binop type err if relevantEsteban Küber-132/+396
2021-08-12Use smaller spans for some structured suggestionsEsteban Kuber-237/+307
Use more accurate suggestion spans for * argument parse error * fully qualified path * missing code block type * numeric casts * E0212
2021-08-11Modify structured suggestion outputEsteban Küber-97/+97
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
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