1
Fork 0

Move some rustdoc-ui tests to subdirectories

This commit is contained in:
jyn 2023-04-29 04:08:33 -05:00
parent 572c0d553f
commit 5fa975142f
145 changed files with 40 additions and 29 deletions

View file

@ -0,0 +1,7 @@
// check-fail
// compile-flags: -Z unstable-options --scrape-examples-output-path {{build-base}}/t.calls --scrape-examples-target-crate foobar
pub fn foo() {
INVALID_FUNC();
//~^ ERROR could not resolve path
}

View file

@ -0,0 +1,14 @@
error[E0433]: failed to resolve: could not resolve path `INVALID_FUNC`
--> $DIR/scrape-examples-fail-if-type-error.rs:5:3
|
LL | INVALID_FUNC();
| ^^^^^^^^^^^^ could not resolve path `INVALID_FUNC`
|
= note: this error was originally ignored because you are running `rustdoc`
= note: try running again with `rustc` or `cargo check` and you may get a more detailed error
error: Compilation failed, aborting rustdoc
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0433`.

View file

@ -0,0 +1,4 @@
// compile-flags: -Z unstable-options --scrape-examples-output-path {{build-base}}/t.calls --scrape-examples-target-crate foobar
// check-pass
#![no_std]
use core as _;

View file

@ -0,0 +1 @@
// compile-flags: -Z unstable-options --scrape-examples-target-crate foobar

View file

@ -0,0 +1,2 @@
error: must use --scrape-examples-output-path and --scrape-examples-target-crate together

View file

@ -0,0 +1 @@
// compile-flags: -Z unstable-options --scrape-examples-output-path ex.calls

View file

@ -0,0 +1,2 @@
error: must use --scrape-examples-output-path and --scrape-examples-target-crate together