Normalize crateresolve1.rs to support different candidate ordering between executions.

This commit is contained in:
David Wood 2018-08-09 16:19:11 +02:00
parent 8e7b9b8117
commit 003b5a8b0f
No known key found for this signature in database
GPG Key ID: 01760B4F9F53F154
3 changed files with 12 additions and 10 deletions

View File

@ -1,16 +1,16 @@
error[E0464]: multiple matching crates for `crateresolve1`
--> $DIR/crateresolve1.rs:16:1
--> $DIR/crateresolve1.rs:18:1
|
LL | extern crate crateresolve1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: candidates:
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-1.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-2.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-3.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-N.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-N.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1.nll/auxiliary/libcrateresolve1-N.so
error[E0463]: can't find crate for `crateresolve1`
--> $DIR/crateresolve1.rs:16:1
--> $DIR/crateresolve1.rs:18:1
|
LL | extern crate crateresolve1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// normalize-stderr-test: "crateresolve1\-\d.so" -> "crateresolve1-N.so"
// aux-build:crateresolve1-1.rs
// aux-build:crateresolve1-2.rs
// aux-build:crateresolve1-3.rs

View File

@ -1,16 +1,16 @@
error[E0464]: multiple matching crates for `crateresolve1`
--> $DIR/crateresolve1.rs:16:1
--> $DIR/crateresolve1.rs:18:1
|
LL | extern crate crateresolve1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: candidates:
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-1.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-2.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-3.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-N.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-N.so
crate `crateresolve1`: $TEST_BUILD_DIR/crateresolve1/auxiliary/libcrateresolve1-N.so
error[E0463]: can't find crate for `crateresolve1`
--> $DIR/crateresolve1.rs:16:1
--> $DIR/crateresolve1.rs:18:1
|
LL | extern crate crateresolve1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate