Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//@ 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
//@ ignore-windows
// 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) {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/ui/eii/privacy1.rs
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/eii/privacy2.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/ui/eii/privacy2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading