diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-14 11:34:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 11:34:32 +0000 |
commit | 310968874db1902084012cf767ad0b6e93f028c2 (patch) | |
tree | bc38a5efba757858a7062d2dae93171e2befc27d /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | 88bf6bf78a6965d415292b958db14ad51fee25d1 (diff) | |
parent | f742bead5f4eb94908f188b99a3b261de0be9ca2 (diff) | |
parent | a9a7654d850a7140d1e0d636f2cc375308bb2c32 (diff) | |
download | gcc-310968874db1902084012cf767ad0b6e93f028c2.zip gcc-310968874db1902084012cf767ad0b6e93f028c2.tar.gz gcc-310968874db1902084012cf767ad0b6e93f028c2.tar.bz2 |
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>