public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1161
@ 2022-06-08 12:37 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2b1cb4ba8693e2c148e7aa406b4f03d34ffc0439

commit 2b1cb4ba8693e2c148e7aa406b4f03d34ffc0439
Merge: d54ca716854 e26b95f64a0
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Mon Apr 25 11:10:22 2022 +0000

    Merge #1161
    
    1161: Implement macro expansion for ComparisonExpr, LazyBooleanExpr, AssignmentExpr r=CohenArthur a=antego
    
    Following up on https://github.com/Rust-GCC/gccrs/issues/1141
    
    Currently the macro expansion doesn't work for ComparisonExpr, LazyBooleanExpr, AssignmentExpr. To fix this, I just copied the code from the `ArithmeticOrLogicalExpr` and it seemed to work. I don't like the code duplication, happy to try refactoring it into a separate function.
    
    Will work on the macro expansion in the `if` expressions next.
    
    Co-authored-by: antego <antego@users.noreply.github.com>

Diff:

 gcc/rust/expand/rust-attribute-visitor.cc      | 39 ++++++++++++++++++++++----
 gcc/testsuite/rust/execute/torture/macros29.rs | 21 ++++++++++++++
 gcc/testsuite/rust/execute/torture/macros30.rs | 22 +++++++++++++++
 gcc/testsuite/rust/execute/torture/macros31.rs | 27 ++++++++++++++++++
 4 files changed, 103 insertions(+), 6 deletions(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:37 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:37 [gcc/devel/rust/master] Merge #1161 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).