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

https://gcc.gnu.org/g:310968874db1902084012cf767ad0b6e93f028c2

commit 310968874db1902084012cf767ad0b6e93f028c2
Merge: 88bf6bf78a6 f742bead5f4 a9a7654d850
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Tue Dec 14 11:34:32 2021 +0000

    Merge #829 #830
    
    829: Constant folder now returns error_mark_node instead of nullptr r=philberty a=npate012
    
    Removed nullptr checking on results from constant folder because when the
    result is already error_mark_node, we no longer need to check if the result
    is nullptr.
    
    Fixes #692
    
    Signed-off-by: Nirmal Patel <npate012@gmail.com>
    
    
    830: Cleanup lambdas within some AST types r=philberty a=dafaust
    
    Cleanup constructs like:
    ```C
        struct_decl.iterate ([&] (AST::TupleField &field) mutable -> bool {
            ... /* do stuff with field */
        });
    ```
    For the following AST classes:
    - AST::StructStruct
    - AST::TupleStruct
    - AST::Union
    - AST::ArrayElemsValues
    
    Fixes: #714
    Fixes: #715
    Fixes: #716
    Fixes: #720
    
    
    Co-authored-by: Nirmal Patel <npate012@gmail.com>
    Co-authored-by: David Faust <david.faust@oracle.com>

Diff:

 gcc/rust/ast/rust-expr.h                          |   9 --
 gcc/rust/ast/rust-item.h                          |  27 ------
 gcc/rust/hir/rust-ast-lower-expr.h                |  10 +-
 gcc/rust/hir/rust-ast-lower-item.h                | 112 +++++++++++-----------
 gcc/rust/hir/rust-ast-lower-stmt.h                | 112 +++++++++++-----------
 gcc/rust/resolve/rust-ast-resolve-expr.h          |   6 +-
 gcc/rust/resolve/rust-ast-resolve-item.h          |  12 +--
 gcc/rust/resolve/rust-ast-resolve-stmt.h          |  12 +--
 gcc/rust/typecheck/rust-hir-const-fold.cc         |   2 -
 gcc/rust/typecheck/rust-hir-const-fold.h          |   9 +-
 gcc/rust/typecheck/rust-hir-type-check-enumitem.h |   3 +-
 gcc/rust/typecheck/rust-hir-type-check.cc         |   2 -
 12 files changed, 127 insertions(+), 189 deletions(-)


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

only message in thread, other threads:[~2022-06-08 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:56 [gcc/devel/rust/master] Merge #829 #830 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).