about summary refs log tree commit diff
path: root/tests/ui/rustdoc
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2025-06-23 13:30:14 -0700
committerJosh Stone <jistone@redhat.com>2025-06-23 13:30:14 -0700
commit8469966710a16fd11af832d592569bcdf2298081 (patch)
treea53edc55e83cdeb06b641da120b4d1103f187214 /tests/ui/rustdoc
parent706f244db581212cabf2e619e0113d70999b2bbe (diff)
downloadrust-8469966710a16fd11af832d592569bcdf2298081.tar.gz
rust-8469966710a16fd11af832d592569bcdf2298081.zip
Account for beta revisions when normalizing versions
Several UI tests have a `normalize-stderr` for "you are using x.y.z"
rustc versions, and that regex is flexible enough for suffixes like
"-nightly" and "-dev", but not for "-beta.N". We can just add '.' to
that trailing pattern to include this.
Diffstat (limited to 'tests/ui/rustdoc')
-rw-r--r--tests/ui/rustdoc/renamed-features-rustdoc_internals.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs b/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs
index 2257130280d..c0f3c190b65 100644
--- a/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs
+++ b/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs
@@ -1,4 +1,4 @@
-//@ normalize-stderr: "you are using [0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?( \([^)]*\))?" -> "you are using $$RUSTC_VERSION"
+//@ 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