Remove unused SourceLoc in many Mach data structures (#4180)
* Remove unused srcloc in MachReloc * Remove unused srcloc in MachTrap * Use `into_iter` on array in bench code to suppress a warning * Remove unused srcloc in MachCallSite
This commit is contained in:
@@ -200,7 +200,7 @@ fn bench_instantiation(c: &mut Criterion) {
|
||||
}
|
||||
|
||||
fn strategies() -> impl Iterator<Item = InstanceAllocationStrategy> {
|
||||
std::array::IntoIter::new([
|
||||
[
|
||||
InstanceAllocationStrategy::OnDemand,
|
||||
InstanceAllocationStrategy::Pooling {
|
||||
strategy: Default::default(),
|
||||
@@ -209,7 +209,8 @@ fn strategies() -> impl Iterator<Item = InstanceAllocationStrategy> {
|
||||
..Default::default()
|
||||
},
|
||||
},
|
||||
])
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
||||
criterion_group!(benches, bench_instantiation);
|
||||
|
||||
Reference in New Issue
Block a user