You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda's like this need to be removed they make working with the IR's more complex for static analysis. To fix this issue you should be able to remove this lambda helper function and provide a method to return a reference to the values like
710: Ensure for Coercion Sites we emit the code nessecary r=philberty a=philberty
Coercion sites in Rust can require extra code generation for
CallExpressions arguments for example. This ensures we detect
those cases and emit the extra code necessary. Please read the individual
commit messages for more detail on how this works.
Fixes#700#708#709
727: Remove lambda iterators in various HIR classes r=philberty a=dafaust
(This is a revision of #726 with formatting fixes)
This patch removes the lambda iterators used in various HIR objects.
These iterators make interacting with the IR for static analysis more
difficult. Instead, get_X () helpers are added for accessing elements,
and uses of the iterators replaced with for loops.
The following objects are adjusted in this patch:
- HIR::ArrayElemsValues
- HIR::TupleExpr
- HIR::StructExprField
- HIR::StructStruct
- HIR::TupleStruct
Fixes: #703Fixes: #704Fixes: #705Fixes: #706Fixes: #707
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Co-authored-by: David Faust <david.faust@oracle.com>
gccrs/gcc/rust/hir/tree/rust-hir-expr.h
Lines 1742 to 1749 in 99c2830
Lambda's like this need to be removed they make working with the IR's more complex for static analysis. To fix this issue you should be able to remove this lambda helper function and provide a method to return a reference to the values like
Create a new helper to access the elements:
Note this class also refers to the arguments in a Call as parameters which is confusing.
The text was updated successfully, but these errors were encountered: