diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-16 18:38:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 18:38:44 +0000 |
commit | a5272f389b02623b8bc4aaeafcf84013dae7c9fb (patch) | |
tree | af48d761be4df3c5295a56f48075104543ab0377 /gcc/rust/ast/rust-macro.h | |
parent | 733db624cf28519ef537f766d1d0ba162f261def (diff) | |
parent | 3ac17160c8033931f3bb04f234968f9b56ea3c64 (diff) | |
parent | 85d78c1b8dd52488a0d572b2e3ff9ebdde99ab37 (diff) | |
download | gcc-a5272f389b02623b8bc4aaeafcf84013dae7c9fb.zip gcc-a5272f389b02623b8bc4aaeafcf84013dae7c9fb.tar.gz gcc-a5272f389b02623b8bc4aaeafcf84013dae7c9fb.tar.bz2 |
Merge #934 #937
934: macromatch: Add location to abstract MacroMatch class r=philberty a=CohenArthur
Closes #928
This adds location to the all child classes of the `MacroMatch` abstract class. The current locations are as follow, which I believe is what is expected but might be wrong.
```rust
test.rs:2:6: error: macro match fragment
2 | ($a:expr, $b:expr) => { $a + $b };
| ^
test.rs:2:15: error: macro match fragment
2 | ($a:expr, $b:expr) => { $a + $b };
| ^
test.rs:2:5: error: macro matcher
2 | ($a:expr, $b:expr) => { $a + $b };
| ^
test.rs:3:8: error: macro match fragment
3 | ($($i:ident)*) => { $($i)* }
| ^
test.rs:3:17: error: macro match repetition!
3 | ($($i:ident)*) => { $($i)* }
| ^
test.rs:3:5: error: macro matcher
3 | ($($i:ident)*) => { $($i)* }
| ^
```
I think this should be rebased on #932 so that I can remove the FIXME
937: dockerfile: Install cargo-gccrs alongside gccrs r=philberty a=CohenArthur
Closes #826
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>