Skip to content

Commit 65d5aff

Browse files
authored
Unrolled build for rust-lang#117082
Rollup merge of rust-lang#117082 - fortanix:raoul/fix_closure_inherit_target_feature_sgx, r=Mark-Simulacrum Fix closure-inherit-target-feature test for SGX platform PR rust-lang#116078 adds the `closure-inherit-target-feature.rs` test that checks the generated assembly code for closures. These checks explicitly check the presence of `ret` instructions. This is incompatible with the SGX target as it explicitly rewrites all `ret` instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform. cc: ```@jethrogb```
2 parents bbcc169 + c094ba0 commit 65d5aff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/assembly/closure-inherit-target-feature.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// only-x86_64
2+
// ignore-sgx Tests incompatible with LVI mitigations
23
// assembly-output: emit-asm
34
// make sure the feature is not enabled at compile-time
45
// compile-flags: -C opt-level=3 -C target-feature=-sse4.1 -C llvm-args=-x86-asm-syntax=intel

0 commit comments

Comments
 (0)