once again reorganize the EII tests a bit

This commit is contained in:
Jana Dönszelmann
2026-01-10 11:10:31 +01:00
parent 1b9ae9eddc
commit 9b811544f2
20 changed files with 12 additions and 12 deletions
@@ -1,6 +1,6 @@
//@ run-pass
//@ check-run-results
//@ aux-build: codegen2.rs
//@ aux-build: codegen_cross_crate_other_crate.rs
//@ compile-flags: -O
//@ ignore-backends: gcc
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
@@ -8,7 +8,7 @@
// Tests whether calling EIIs works with the declaration in another crate.
#![feature(extern_item_impls)]
extern crate codegen2 as codegen;
extern crate codegen_cross_crate_other_crate as codegen;
#[codegen::eii1]
fn eii1_impl(x: u64) {
+3 -3
View File
@@ -1,13 +1,13 @@
//@ run-pass
//@ check-run-results
//@ aux-build: codegen1.rs
//@ aux-build: other_crate_privacy1.rs
//@ ignore-backends: gcc
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
//@ ignore-windows
// Tests whether re-exports work.
#![feature(extern_item_impls)]
extern crate codegen1 as codegen;
extern crate other_crate_privacy1 as codegen;
#[codegen::eii1]
fn eii1_impl(x: u64) {
+2 -2
View File
@@ -1,8 +1,8 @@
//@ aux-build:codegen3.rs
//@ aux-build:other_crate_privacy2.rs
// Tests whether name resolution respects privacy properly.
#![feature(extern_item_impls)]
extern crate codegen3 as codegen;
extern crate other_crate_privacy2 as codegen;
// has a span but in the other crate
//~? ERROR `#[eii2]` required, but not found
+5 -5
View File
@@ -11,24 +11,24 @@ LL | codegen::decl1(42);
| ^^^^^ private function
|
note: the function `decl1` is defined here
--> $DIR/auxiliary/codegen3.rs:7:1
--> $DIR/auxiliary/other_crate_privacy2.rs:7:1
|
LL | fn decl1(x: u64);
| ^^^^^^^^^^^^^^^^^
error: `#[eii2]` required, but not found
--> $DIR/auxiliary/codegen3.rs:9:7
--> $DIR/auxiliary/other_crate_privacy2.rs:9:7
|
LL | #[eii(eii2)]
| ^^^^ expected because `#[eii2]` was declared here in crate `codegen3`
| ^^^^ expected because `#[eii2]` was declared here in crate `other_crate_privacy2`
|
= help: expected at least one implementation in crate `privacy2` or any of its dependencies
error: `#[eii3]` required, but not found
--> $DIR/auxiliary/codegen3.rs:13:11
--> $DIR/auxiliary/other_crate_privacy2.rs:13:11
|
LL | #[eii(eii3)]
| ^^^^ expected because `#[eii3]` was declared here in crate `codegen3`
| ^^^^ expected because `#[eii3]` was declared here in crate `other_crate_privacy2`
|
= help: expected at least one implementation in crate `privacy2` or any of its dependencies