public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #932
@ 2022-06-08 12:07 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:07 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6a6c21709314e72f2edb5539913a4b7ce7a1cb66
commit 6a6c21709314e72f2edb5539913a4b7ce7a1cb66
Merge: d81ba63f482 c1e72db48a0
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Thu Feb 17 09:22:03 2022 +0000
Merge #932
932: Add location information to MacroRule r=CohenArthur a=CohenArthur
Closes #930
This PR adds location information to the `MacroRule` structure.
The location is from the beginning of the invokation pattern, so that errors look like so:
```rust
test.rs:2:5: error: ...
2 | ($a:expr, $b:expr) => { a + b }
| ^
```
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diff:
gcc/rust/ast/rust-macro.h | 19 +++++++++++--------
gcc/rust/parse/rust-parse-impl.h | 8 +++++---
2 files changed, 16 insertions(+), 11 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:07 [gcc/devel/rust/master] Merge #932 Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).