rust/compiler/rustc_ast_lowering/src
Matthias Krüger fb691b470a
Rollup merge of #130635 - eholk:pin-reborrow-sugar, r=compiler-errors
Add `&pin (mut|const) T` type position sugar

This adds parser support for `&pin mut T` and `&pin const T` references. These are desugared to `Pin<&mut T>` and `Pin<&T>` in the AST lowering phases.

This PR currently includes #130526 since that one is in the commit queue. Only the most recent commits (bd450027eb4a94b814a7dd9c0fa29102e6361149 and following) are new.

Tracking:

- #130494

r? `@compiler-errors`
2024-10-15 05:12:34 +02:00
..
asm.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
block.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
delegation.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
expr.rs Add sugar for &pin (const|mut) types 2024-10-07 11:15:04 -07:00
format.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
index.rs rm ItemKind::OpaqueTy 2024-10-04 23:28:22 +00:00
item.rs Move in_trait into OpaqueTyOrigin 2024-10-02 22:48:26 -04:00
lib.rs Rollup merge of #130635 - eholk:pin-reborrow-sugar, r=compiler-errors 2024-10-15 05:12:34 +02:00
lifetime_collector.rs Add sugar for &pin (const|mut) types 2024-10-07 11:15:04 -07:00
pat.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
path.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00