diff options
Diffstat (limited to 'src/test/ui/crate-loading')
17 files changed, 0 insertions, 163 deletions
diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-1.rs b/src/test/ui/crate-loading/auxiliary/crateresolve1-1.rs deleted file mode 100644 index a00a19e46..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve1-1.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-1 -#![crate_name = "crateresolve1"] -#![crate_type = "lib"] - -pub fn f() -> isize { 10 } diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-2.rs b/src/test/ui/crate-loading/auxiliary/crateresolve1-2.rs deleted file mode 100644 index 71cc0a12e..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve1-2.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-2 -#![crate_name = "crateresolve1"] -#![crate_type = "lib"] - -pub fn f() -> isize { 20 } diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-3.rs b/src/test/ui/crate-loading/auxiliary/crateresolve1-3.rs deleted file mode 100644 index 921687d4c..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve1-3.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-3 -#![crate_name = "crateresolve1"] -#![crate_type = "lib"] - -pub fn f() -> isize { 30 } diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-1.rs b/src/test/ui/crate-loading/auxiliary/crateresolve2-1.rs deleted file mode 100644 index e9459ed07..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve2-1.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-1 --emit=metadata -#![crate_name = "crateresolve2"] -#![crate_type = "lib"] - -pub fn f() -> isize { 10 } diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-2.rs b/src/test/ui/crate-loading/auxiliary/crateresolve2-2.rs deleted file mode 100644 index c45416827..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve2-2.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-2 --emit=metadata -#![crate_name = "crateresolve2"] -#![crate_type = "lib"] - -pub fn f() -> isize { 20 } diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-3.rs b/src/test/ui/crate-loading/auxiliary/crateresolve2-3.rs deleted file mode 100644 index b356db4b6..000000000 --- a/src/test/ui/crate-loading/auxiliary/crateresolve2-3.rs +++ /dev/null @@ -1,5 +0,0 @@ -// compile-flags:-C extra-filename=-3 --emit=metadata -#![crate_name = "crateresolve2"] -#![crate_type = "lib"] - -pub fn f() -> isize { 30 } diff --git a/src/test/ui/crate-loading/auxiliary/libfoo.rlib b/src/test/ui/crate-loading/auxiliary/libfoo.rlib deleted file mode 100644 index e69de29bb..000000000 --- a/src/test/ui/crate-loading/auxiliary/libfoo.rlib +++ /dev/null diff --git a/src/test/ui/crate-loading/auxiliary/proc-macro.rs b/src/test/ui/crate-loading/auxiliary/proc-macro.rs deleted file mode 100644 index 52631de57..000000000 --- a/src/test/ui/crate-loading/auxiliary/proc-macro.rs +++ /dev/null @@ -1,12 +0,0 @@ -// force-host -// no-prefer-dynamic -#![crate_name = "reproduction"] -#![crate_type = "proc-macro"] - -extern crate proc_macro; -use proc_macro::TokenStream; - -#[proc_macro] -pub fn mac(input: TokenStream) -> TokenStream { - input -} diff --git a/src/test/ui/crate-loading/crateresolve1.rs b/src/test/ui/crate-loading/crateresolve1.rs deleted file mode 100644 index f4795e953..000000000 --- a/src/test/ui/crate-loading/crateresolve1.rs +++ /dev/null @@ -1,15 +0,0 @@ -// aux-build:crateresolve1-1.rs -// aux-build:crateresolve1-2.rs -// aux-build:crateresolve1-3.rs - -// normalize-stderr-test: "\.nll/" -> "/" -// normalize-stderr-test: "\\\?\\" -> "" -// normalize-stderr-test: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib" - -// NOTE: This test is duplicated at `src/test/ui/error-codes/E0464.rs`. - -extern crate crateresolve1; -//~^ ERROR multiple matching crates for `crateresolve1` - -fn main() { -} diff --git a/src/test/ui/crate-loading/crateresolve1.stderr b/src/test/ui/crate-loading/crateresolve1.stderr deleted file mode 100644 index 0d7538eaf..000000000 --- a/src/test/ui/crate-loading/crateresolve1.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error[E0464]: multiple matching crates for `crateresolve1` - --> $DIR/crateresolve1.rs:11:1 - | -LL | extern crate crateresolve1; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: candidates: - crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-1.somelib - crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-2.somelib - crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-3.somelib - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0464`. diff --git a/src/test/ui/crate-loading/crateresolve2.rs b/src/test/ui/crate-loading/crateresolve2.rs deleted file mode 100644 index 5a4fee7ed..000000000 --- a/src/test/ui/crate-loading/crateresolve2.rs +++ /dev/null @@ -1,14 +0,0 @@ -// check-fail - -// aux-build:crateresolve2-1.rs -// aux-build:crateresolve2-2.rs -// aux-build:crateresolve2-3.rs - -// normalize-stderr-test: "\.nll/" -> "/" -// normalize-stderr-test: "\\\?\\" -> "" - -extern crate crateresolve2; -//~^ ERROR multiple matching crates for `crateresolve2` - -fn main() { -} diff --git a/src/test/ui/crate-loading/crateresolve2.stderr b/src/test/ui/crate-loading/crateresolve2.stderr deleted file mode 100644 index afd3702de..000000000 --- a/src/test/ui/crate-loading/crateresolve2.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error[E0464]: multiple matching crates for `crateresolve2` - --> $DIR/crateresolve2.rs:10:1 - | -LL | extern crate crateresolve2; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: candidates: - crate `crateresolve2`: $TEST_BUILD_DIR/crate-loading/crateresolve2/auxiliary/libcrateresolve2-1.rmeta - crate `crateresolve2`: $TEST_BUILD_DIR/crate-loading/crateresolve2/auxiliary/libcrateresolve2-2.rmeta - crate `crateresolve2`: $TEST_BUILD_DIR/crate-loading/crateresolve2/auxiliary/libcrateresolve2-3.rmeta - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0464`. diff --git a/src/test/ui/crate-loading/cross-compiled-proc-macro.rs b/src/test/ui/crate-loading/cross-compiled-proc-macro.rs deleted file mode 100644 index c1f433143..000000000 --- a/src/test/ui/crate-loading/cross-compiled-proc-macro.rs +++ /dev/null @@ -1,8 +0,0 @@ -// edition:2018 -// compile-flags:--extern reproduction -// aux-build:proc-macro.rs -// check-pass - -reproduction::mac!(); - -fn main() {} diff --git a/src/test/ui/crate-loading/invalid-rlib.rs b/src/test/ui/crate-loading/invalid-rlib.rs deleted file mode 100644 index aea861e32..000000000 --- a/src/test/ui/crate-loading/invalid-rlib.rs +++ /dev/null @@ -1,10 +0,0 @@ -// compile-flags: --crate-type lib --extern foo={{src-base}}/crate-loading/auxiliary/libfoo.rlib -// normalize-stderr-test: "failed to mmap file '.*auxiliary/libfoo.rlib':.*" -> "failed to mmap file 'auxiliary/libfoo.rlib'" -// don't emit warn logging, it's basically the same as the errors and it's annoying to normalize -// rustc-env:RUSTC_LOG=error -// edition:2018 -#![no_std] -use ::foo; //~ ERROR invalid metadata files for crate `foo` -//~| NOTE failed to mmap file -//~^^ ERROR invalid metadata files for crate `foo` -//~| NOTE failed to mmap file diff --git a/src/test/ui/crate-loading/invalid-rlib.stderr b/src/test/ui/crate-loading/invalid-rlib.stderr deleted file mode 100644 index 3c0d23bf7..000000000 --- a/src/test/ui/crate-loading/invalid-rlib.stderr +++ /dev/null @@ -1,19 +0,0 @@ -error[E0786]: found invalid metadata files for crate `foo` - --> $DIR/invalid-rlib.rs:7:7 - | -LL | use ::foo; - | ^^^ - | - = note: failed to mmap file 'auxiliary/libfoo.rlib' - -error[E0786]: found invalid metadata files for crate `foo` - --> $DIR/invalid-rlib.rs:7:7 - | -LL | use ::foo; - | ^^^ - | - = note: failed to mmap file 'auxiliary/libfoo.rlib' - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0786`. diff --git a/src/test/ui/crate-loading/missing-std.rs b/src/test/ui/crate-loading/missing-std.rs deleted file mode 100644 index 400d9f6e0..000000000 --- a/src/test/ui/crate-loading/missing-std.rs +++ /dev/null @@ -1,12 +0,0 @@ -// compile-flags: --target x86_64-unknown-uefi -// needs-llvm-components: x86 -// rustc-env:CARGO=/usr/bin/cargo -#![feature(no_core)] -#![no_core] -extern crate core; -//~^ ERROR can't find crate for `core` -//~| NOTE can't find crate -//~| NOTE target may not be installed -//~| HELP consider building the standard library from source with `cargo build -Zbuild-std` -//~| HELP consider downloading the target with `rustup target add x86_64-unknown-uefi` -fn main() {} diff --git a/src/test/ui/crate-loading/missing-std.stderr b/src/test/ui/crate-loading/missing-std.stderr deleted file mode 100644 index 70bcae1e0..000000000 --- a/src/test/ui/crate-loading/missing-std.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0463]: can't find crate for `core` - --> $DIR/missing-std.rs:6:1 - | -LL | extern crate core; - | ^^^^^^^^^^^^^^^^^^ can't find crate - | - = note: the `x86_64-unknown-uefi` target may not be installed - = help: consider downloading the target with `rustup target add x86_64-unknown-uefi` - = help: consider building the standard library from source with `cargo build -Zbuild-std` - -error: requires `sized` lang_item - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0463`. |