rust/compiler/rustc_expand/src
Nilstrieb 46cab11ed1
Rollup merge of #121256 - Jarcho:visitor2, r=oli-obk
Allow AST and HIR visitors to return `ControlFlow`

Alternative to #108598.

Since rust-lang/libs-team#187 was rejected, this implements our own version of the `Try` trait (`VisitorResult`) and the `try` macro (`try_visit`). Since this change still allows visitors to return `()`, no changes have been made to the existing ones. They can be done in a separate PR.
2024-02-20 07:35:47 +01:00
..
mbe Auto merge of #119673 - petrochenkov:dialoc5, r=compiler-errors,cjgillot 2024-02-18 20:51:16 +00:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
tokenstream Remove TokenStreamBuilder. 2022-10-05 12:42:54 +11:00
base.rs Allow AST and HIR visitors to return ControlFlow 2024-02-18 03:49:28 -05:00
build.rs Add async bound modifier to enable async Fn bounds 2024-01-31 16:59:19 +00:00
config.rs Rollup merge of #117420 - Jules-Bertholet:internal-unstable-stmt-expr-attributes, r=petrochenkov 2024-01-26 14:43:29 +01:00
errors.rs make "invalid fragment specifier" translatable 2024-02-16 20:15:07 +02:00
expand.rs Allow AST and HIR visitors to return ControlFlow 2024-02-18 03:49:28 -05:00
lib.rs macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
mbe.rs Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
module.rs Make DiagnosticBuilder::emit consuming. 2024-01-08 15:24:49 +11:00
placeholders.rs Give VariantData::Struct named fields, to clairfy recovered. 2023-12-20 00:07:34 +00:00
proc_macro.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
proc_macro_server.rs Add ErrorGuaranteed to ast::LitKind::Err, token::LitKind::Err. 2024-02-15 14:46:08 +11:00
tests.rs Rename EmitterWriter as HumanEmitter. 2024-01-05 10:02:40 +11:00