Files
rust/compiler/rustc_ast/src
León Orell Valerian Liehr 5b485f04de Rollup merge of #125049 - dtolnay:castbrace, r=compiler-errors
Disallow cast with trailing braced macro in let-else

This fixes an edge case I noticed while porting #118880 and #119062 to syn.

Previously, rustc incorrectly accepted code such as:

```rust
let foo = &std::ptr::null as &'static dyn std::ops::Fn() -> *const primitive! {
    8
} else {
    return;
};
```

even though a right curl brace `}` directly before `else` in a `let...else` statement is not supposed to be valid syntax.
2024-05-22 19:04:44 +02:00
..
2024-05-14 08:19:58 +10:00
2024-05-01 22:19:11 -04:00
2024-05-17 18:33:37 -03:00
2023-11-22 18:38:17 +11:00
2024-05-20 19:21:30 -04:00
2024-05-14 08:19:58 +10:00
2024-05-17 18:33:37 -03:00