1
Fork 0
rust/compiler/rustc_expand/src
Esteban Kuber f42b4f595e Tweak diagnostics
* Recover from invalid `'label: ` before block.
* Make suggestion to enclose statements in a block multipart.
* Point at `match`, `while`, `loop` and `unsafe` keywords when failing
  to parse their expression.
* Do not suggest `{ ; }`.
* Do not suggest `|` when very unlikely to be what was wanted (in `let`
  statements).
2022-02-28 18:22:45 +00:00
..
mbe rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse re-format with new rustfmt 2021-11-30 13:08:41 -05:00
tokenstream Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
base.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
build.rs Include ignore message in libtest output 2022-02-24 17:36:36 -05:00
config.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
expand.rs Tweak diagnostics 2022-02-28 18:22:45 +00:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
mbe.rs fix few typos 2021-04-19 15:57:08 +03:00
module.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
placeholders.rs expand: Rename some AstFragments to match AST structures 2022-01-07 13:50:03 +08:00
proc_macro.rs proc_macro: Add an expand_expr method to TokenStream 2021-11-12 15:41:40 -05:00
proc_macro_server.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
tests.rs Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00