Skip to content

Commit e78dd1b

Browse files
committed
ignore test with defaults on macos
1 parent 4a211b3 commit e78dd1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/ui/eii/default/call_default.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
//@ run-pass
44
//@ check-run-results
55
//@ ignore-backends: gcc
6+
// Functions can have target-cpu applied. On apple-darwin this is super important,
7+
// since you can have binaries which mix x86 and aarch64 code that are compatible
8+
// with both architectures. So we can't just reject target_cpu on EIIs since apple
9+
// puts them on by default. The problem: we generate aliases. And aliases cannot
10+
// get target_cpu applied to them. So, instead we should, in the case of functions,
11+
// generate a shim function. For statics aliases should keep working in theory.
12+
// In fact, aliases are only necessary for statics. For functions we could just
13+
// always generate a shim and a previous version of EII did so but I was sad
14+
// that that'd never support statics.
15+
//@ ignore-macos
616
// Tests EIIs with default implementations.
717
// When there's no explicit declaration, the default should be called from the declaring crate.
818
#![feature(extern_item_impls)]

0 commit comments

Comments
 (0)