diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-10-03 21:10:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-03 21:10:33 +0200 |
| commit | dbc5e72ea203029c1ceb87e46d84800bb90eaf7f (patch) | |
| tree | d060da246e4fe6b940a2492c8a38cea404a9f5c4 /tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr | |
| parent | 9e477c4386c35dbc59ce70f532cdd05288e1926f (diff) | |
| parent | c1443e2591c284f6ac8372d15c88f8d6c9470e4c (diff) | |
| download | rust-dbc5e72ea203029c1ceb87e46d84800bb90eaf7f.tar.gz rust-dbc5e72ea203029c1ceb87e46d84800bb90eaf7f.zip | |
Rollup merge of #147292 - Urgau:rustdoc-test-unstable_opts, r=fmease
Respect `-Z` unstable options in `rustdoc --test` This PR makes rustdoc respect `-Z` unstable options when collecting doctests (`rustdoc --test`). In the process I also realized that `--error-format` wasn't respected as well, making UI annotations impossible to write so I fixed that as well. Best reviewed commit by commit. Fixes https://github.com/rust-lang/rust/issues/147276 Fixes https://github.com/rust-lang/rust/issues/143930 r? fmease
Diffstat (limited to 'tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr')
| -rw-r--r-- | tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr b/tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr new file mode 100644 index 00000000000..eebf4f307f1 --- /dev/null +++ b/tests/rustdoc-ui/doctest/unstable-opts-147276.normal.stderr @@ -0,0 +1,13 @@ +error[E0658]: `#[used(linker)]` is currently unstable + --> $DIR/unstable-opts-147276.rs:15:1 + | +LL | #[used(linker)] + | ^^^^^^^^^^^^^^^ + | + = note: see issue #93798 <https://github.com/rust-lang/rust/issues/93798> for more information + = help: add `#![feature(used_with_arg)]` to the crate attributes to enable + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0658`. |
