about summary refs log tree commit diff
path: root/src/test/rustdoc/check-source-code-urls-to-def.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-08-05 23:33:43 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-08-05 23:33:43 +0200
commitba11dc7fddd58eb3559d0724e8ced0d2c2128f4a (patch)
treeef82f17d038e8def55e8012ed214619cb686ccbd /src/test/rustdoc/check-source-code-urls-to-def.rs
parentdfe4fec783c657ccbcba183fe2cadbc7c1db8525 (diff)
downloadrust-ba11dc7fddd58eb3559d0724e8ced0d2c2128f4a.tar.gz
rust-ba11dc7fddd58eb3559d0724e8ced0d2c2128f4a.zip
Fix URL conflict for std type
Diffstat (limited to 'src/test/rustdoc/check-source-code-urls-to-def.rs')
-rw-r--r--src/test/rustdoc/check-source-code-urls-to-def.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc/check-source-code-urls-to-def.rs b/src/test/rustdoc/check-source-code-urls-to-def.rs
index 51c4835b5aa..e3ae79ccdb1 100644
--- a/src/test/rustdoc/check-source-code-urls-to-def.rs
+++ b/src/test/rustdoc/check-source-code-urls-to-def.rs
@@ -26,7 +26,7 @@ impl Foo {
 
 fn babar() {}
 
-// @has - '//a[@href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"]' 'String'
+// @has - '//a/@href' '/struct.String.html'
 // @count - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html#21"]' 5
 // @has - '//a[@href="../../source_code/struct.SourceCode.html"]' 'source_code::SourceCode'
 pub fn foo(a: u32, b: &str, c: String, d: Foo, e: bar::Bar, f: source_code::SourceCode) {