diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-15 08:54:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 08:54:55 +0000 |
commit | d17e0aa7695ddb383e0a4fc43185e2ab42c81703 (patch) | |
tree | dead9ef51792ed2b75af442b67d983c77da733bf /gcc/rust/backend/rust-compile-pattern.cc | |
parent | d36a3c5752cbffab5bc107bb3cf7710442a29f9e (diff) | |
parent | a9c0649503f19bb2399bb8d4fe2f2d45db65727d (diff) | |
download | gcc-d17e0aa7695ddb383e0a4fc43185e2ab42c81703.zip gcc-d17e0aa7695ddb383e0a4fc43185e2ab42c81703.tar.gz gcc-d17e0aa7695ddb383e0a4fc43185e2ab42c81703.tar.bz2 |
Merge #1116
1116: Move `cfg!()` macro to builtins. Fixes #1039 r=CohenArthur a=antego
Fixes #1039
Hey team, I need help understanding why the test fails.
Compilation succeeds, all the existing tests pass. However the test that I've added fails with the error:
```
FAIL: rust/compile/cfg_macro.rs (test for excess errors)
Excess errors:
/Users/anton/Documents/projects/gcc2/gccrs/gcc/testsuite/rust/compile/cfg_macro.rs:17:8: fatal error: Failed to lower expr: [MacroInvocation:
outer attributes: none
cfg!((A))
has semicolon: false]
compilation terminated.
```
I tried to understand what's happening using a debugger. The only thing that I understood is that the `MacroBuiltin::cfg` function runs.
Appreciate any feedback.
Thank you.
Co-authored-by: antego <antego@users.noreply.github.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions