generate_locations!() { /* proc-macro */ }
Expand description

Repeatedly assigns to a variable to increase the number of locations while keeping the number of places constant. For example:

use bench_utils::generate_locations;
generate_locations!(foo: [i32; 10] = 1);

generates a program which assigns foo = 1 10 times.