diff options
| author | Jieyou Xu <jieyouxu@outlook.com> | 2025-06-24 10:09:58 +0800 |
|---|---|---|
| committer | Jieyou Xu <jieyouxu@outlook.com> | 2025-06-24 23:32:09 +0800 |
| commit | db11e747230caa23aad3f159e42dc3b47baf7557 (patch) | |
| tree | 9c6af9394f2bb0d8f94b85a416b1c063a31361d6 /tests/ui/rustdoc/renamed-features-rustdoc_internals.rs | |
| parent | 36b21637e93b038453924d3c66821089e71d8baa (diff) | |
| download | rust-db11e747230caa23aad3f159e42dc3b47baf7557.tar.gz rust-db11e747230caa23aad3f159e42dc3b47baf7557.zip | |
Don't include current rustc version string in feature removed help
The version string is difficult to properly normalize out, and removing it isn't a huge deal (the user can query version info easily through `rustc --version` or `cargo --version`). The normalization options were all non-ideal: - Per-test version string normalization is nasty to maintain, and we need to maintain `n` copies of it. - Centralized compiletest normalization (with a directive opt-out) is also not ideal, because `cfg(version(..))` tests can't have those accidentally normalized out (and you'd have to remember to opt-out).
Diffstat (limited to 'tests/ui/rustdoc/renamed-features-rustdoc_internals.rs')
| -rw-r--r-- | tests/ui/rustdoc/renamed-features-rustdoc_internals.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs b/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs index c0f3c190b65..739c624d0c6 100644 --- a/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs +++ b/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs @@ -1,5 +1,3 @@ -//@ normalize-stderr: "you are using [0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?( \([^)]*\))?" -> "you are using $$RUSTC_VERSION" - #![feature(doc_keyword)] //~ ERROR #![feature(doc_primitive)] //~ ERROR #![crate_type = "lib"] |
