about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-10-02 10:27:50 +0200
committerGitHub <noreply@github.com>2025-10-02 10:27:50 +0200
commite041b2c07830a561d3224338aec4c9e520791e67 (patch)
treefbf2c0da10896023abd348152ceb0ec2fc51fee2 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent7320d3ed6104280b4af5f99695544b861c0a2b86 (diff)
parentbb48c162b62ce20c5f51b6a435ca2ba7bb918d7e (diff)
downloadrust-e041b2c07830a561d3224338aec4c9e520791e67.tar.gz
rust-e041b2c07830a561d3224338aec4c9e520791e67.zip
Rollup merge of #147004 - estebank:ascription-in-pat, r=fee1-dead
Tweak handling of "struct like start" where a struct isn't supported

This improves the case where someone tries to write a `match` expr where the patterns have type ascription syntax. Makes them less verbose, by giving up on the first encounter in the block, and makes them more accurate by only treating them as a struct literal if successfully parsed as such.

Before, encountering something like `match a { b:` would confuse the parser and think everything after `match` *must* be a struct, and if it wasn't it would generate a cascade of unnecessary diagnostics.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions