diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-05-22 19:04:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-22 19:04:44 +0200 |
| commit | 5b485f04dedef5d9eb69224c21d83f984017fc66 (patch) | |
| tree | a41f11d7a41f0e5063bc615a27a6fbdffeb37ea3 /compiler/rustc_codegen_llvm/src | |
| parent | b3604de1df24393189f7c8e8741dfd6b98cd892e (diff) | |
| parent | a36b94d0887d42b692935c918c8cc869ca6c61b4 (diff) | |
| download | rust-5b485f04dedef5d9eb69224c21d83f984017fc66.tar.gz rust-5b485f04dedef5d9eb69224c21d83f984017fc66.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
