Skip to content

Commit ff930d4

Browse files
committed
compiler/rustc_target/src/spec/base/apple/tests.rs: Avoid unnecessary large move
Fixes: $ MAGIC_EXTRA_RUSTFLAGS=-Zmove-size-limit=4096 ./x test compiler/rustc_target error: moving 6216 bytes --> compiler/rustc_target/src/spec/base/apple/tests.rs:17:19 | 17 | for target in all_sim_targets { | ^^^^^^^^^^^^^^^ value moved from here | = note: The current maximum size is 4096, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]` = note: `-D large-assignments` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(large_assignments)]`
1 parent 21033f6 commit ff930d4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_target/src/spec/base/apple

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/spec/base/apple/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn simulator_targets_set_abi() {
1414
aarch64_apple_watchos_sim::target(),
1515
];
1616

17-
for target in all_sim_targets {
17+
for target in &all_sim_targets {
1818
assert_eq!(target.abi, "sim")
1919
}
2020
}

0 commit comments

Comments
 (0)