about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-16 19:58:59 +0200
committerGitHub <noreply@github.com>2024-08-16 19:58:59 +0200
commit5bceee4762b4fad94a715b9efdeed252cc793035 (patch)
tree8b78882c055f156fbb1bffa903ed4d474564264d /compiler/rustc_pattern_analysis/src/errors.rs
parent7177a0eeefb732c06b296b2eeda6afe3c60bc5b3 (diff)
parente03cc14b7a781f9b921da50928b0a480b4aaca16 (diff)
downloadrust-5bceee4762b4fad94a715b9efdeed252cc793035.tar.gz
rust-5bceee4762b4fad94a715b9efdeed252cc793035.zip
Rollup merge of #129154 - wafarm:fix-95463, r=estebank
Fix wrong source location for some incorrect macro definitions

Fixes #95463

Currently the code will consume the next token tree after `var` when trying to parse `$var:some_type` even when it's not a `:` (e.g. a `$` when input is `($foo $bar:tt) => {}`). Additionally it will return the wrong span when it's not a `:`.

This PR fixes these problems.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions