Minic rustc's new format_args! expansion

This commit is contained in:
Shoyu Vanilla 2025-06-22 03:00:20 +09:00
parent c13859903c
commit 4f8767d790
7 changed files with 366 additions and 41 deletions

View file

@ -446,13 +446,13 @@ impl MiniCore {
}
let mut keep = true;
for &region in active_regions.iter() {
for &region in &active_regions {
assert!(!region.starts_with(' '), "region marker starts with a space: {region:?}");
self.assert_valid_flag(region);
seen_regions.push(region);
keep &= self.has_flag(region);
}
for &region in inactive_regions.iter() {
for &region in &inactive_regions {
assert!(!region.starts_with(' '), "region marker starts with a space: {region:?}");
self.assert_valid_flag(region);
seen_regions.push(region);