From ba11dc7fddd58eb3559d0724e8ced0d2c2128f4a Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 5 Aug 2021 23:33:43 +0200 Subject: [PATCH] Fix URL conflict for std type --- src/test/rustdoc/check-source-code-urls-to-def.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ fn hello(&self) {} 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) {