rust/compiler/rustc_parse/src/parser
bors f3b9d47a46 Auto merge of #120392 - compiler-errors:async-bound-modifier, r=davidtwco,fmease
Introduce support for `async` bound modifier on `Fn*` traits

Adds `async` to the list of `TraitBoundModifiers`, which instructs AST lowering to map the trait to an async flavor of the trait. For now, this is only supported for `Fn*` to `AsyncFn*`, and I expect that this manual mapping via lang items will be replaced with a better system in the future.

The motivation for adding these bounds is to separate the users of async closures from the exact trait desugaring of their callable bounds. Instead of users needing to be concerned with the `AsyncFn` trait, they should be able to write `async Fn()` and it will desugar to whatever underlying trait we decide is best for the lowering of async closures.

Note: rustfmt support can be done in the rustfmt repo after a subtree sync.
2024-02-06 00:45:11 +00:00
..
attr.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
attr_wrapper.rs Rename Parser::span_diagnostic as Parser::dcx. 2023-12-18 16:06:21 +11:00
diagnostics.rs Rollup merge of #118182 - estebank:issue-118164, r=davidtwco 2024-01-27 10:48:46 +01:00
expr.rs Remove unnecessary .to_string()/.as_str()s 2024-02-02 15:16:05 -08:00
generics.rs Remove unnecessary .to_string()/.as_str()s 2024-02-02 15:16:05 -08:00
item.rs Remove unnecessary .to_string()/.as_str()s 2024-02-02 15:16:05 -08:00
mod.rs Handle methodcalls & operators in patterns 2024-01-28 16:12:21 +01:00
nonterminal.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
pat.rs Rollup merge of #120460 - nnethercote:fix-120397, r=compiler-errors 2024-01-30 11:19:19 +01:00
path.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
stmt.rs Suggest wrapping mac args in parens rather than the whole expression 2024-01-18 00:01:13 +00:00
ty.rs Better error message in ed 2015 2024-01-31 16:59:19 +00:00