rust/compiler/rustc_parse/src
Yuki Okushi d126de111b
Rollup merge of #97166 - nnethercote:move-conditions-out, r=estebank
Move conditions out of recover/report functions.

`Parser` has six recover/report functions that are passed a boolean, and
nothing is done if the boolean has a particular value.

This PR moves the tests outside the functions. This has the following effects.
- The number of lines of code goes down.
- Some `use` items become shorter.
- Avoids the strangeness whereby 11 out of 12 calls to
  `maybe_recover_from_bad_qpath` pass `true` as the second argument.
- Makes it clear at the call site that only one of
  `maybe_recover_from_bad_type_plus` and `maybe_report_ambiguous_plus` will be
  run.

r? `@estebank`
2022-06-02 06:44:27 +09:00
..
lexer Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
parser Rollup merge of #97166 - nnethercote:move-conditions-out, r=estebank 2022-06-02 06:44:27 +09:00
lib.rs rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
validate_attr.rs Overhaul MacArgs::Eq. 2022-05-05 07:06:12 +10:00