Files
rust/compiler/rustc_parse
Jonathan Brouwer 1aabc75ca9 Rollup merge of #157235 - bb1yd:improve-colon-suggestion, r=mejrs
additional changes for issue-144595

- add spaces between the braces @ada4a
- remove `:` in the help message.
I learn this from estebank ("In the text we don't include a trailing :, unless we have a very specific reason. These messages can render in the terminal, in different ways, or in IDEs. Having a : can look out of place in some cases, specifically in rust-analyzer in VSCode is one of them.")
- suggest to use `::` for any colon encountered in tuple struct.
  So it now display help message for `std::string:String`. The same logic also appears in `parse_block_tail`, it suggest the user to use `::` when `parse_full_stmt` stops at a colon. So I think it's okay to make this change.

r? mejrs
2026-06-02 21:16:55 +02:00
..
2026-04-08 21:09:07 +02:00