Implement IntoIterator for PrimaryMap.
This makes iterating through a `PrimaryMap` more consistent with iterating through a `Vec`.
This commit is contained in:
@@ -88,7 +88,7 @@ impl Pressure {
|
||||
};
|
||||
|
||||
// Get the layout of aliasing top-level register classes from the register banks.
|
||||
for bank in reginfo.banks.iter() {
|
||||
for bank in reginfo.banks {
|
||||
let first = bank.first_toprc;
|
||||
let num = bank.num_toprcs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user