https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119341

            Bug ID: 119341
           Summary: statement_list in rust-gcc.cc can use range for
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: internal-improvement
          Severity: normal
          Priority: P3
         Component: rust
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
                CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org,
                    pierre-emmanuel.patry at embecosm dot com
  Target Milestone: ---

Right now statement_list does:
```
  for (std::vector<tree>::const_iterator p = statements.begin ();
       p != statements.end (); ++p)
    {
      tree t = (*p);

```

But this can be rewritten as:
```
  for (tree t : statements)
```


I am writing up this bug report to remind me to write a patch for this after
finishing up using error_operand_p more inside the rust fe.

Reply via email to