summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-12 22:53:21 +0100
committerGitHub <noreply@github.com>2021-02-12 22:53:21 +0100
commitab3f4f0bc0f953b84fa1e175b3f996209b22f9cf (patch)
tree323a8d56b5a7d5438bd82ad4d83f48b95a075e96 /src/test/rustdoc
parent3f5aee2d5241139d808f4fdece0026603489afd1 (diff)
parent02ffe9ef0101cb7b0540ca6195d63442ad3df5ec (diff)
downloadrust-ab3f4f0bc0f953b84fa1e175b3f996209b22f9cf.tar.gz
rust-ab3f4f0bc0f953b84fa1e175b3f996209b22f9cf.zip
Rollup merge of #79775 - jyn514:doctest, r=GuillaumeGomez
Fix injected errors when running doctests on a crate named after a keyword

Closes https://github.com/rust-lang/rust/issues/79771
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/playground-arg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc/playground-arg.rs b/src/test/rustdoc/playground-arg.rs
index 018716ad45a..dbe2297f818 100644
--- a/src/test/rustdoc/playground-arg.rs
+++ b/src/test/rustdoc/playground-arg.rs
@@ -11,4 +11,4 @@
 pub fn dummy() {}
 
 // ensure that `extern crate foo;` was inserted into code snips automatically:
-// @matches foo/index.html '//a[@class="test-arrow"][@href="https://example.com/?code=%23!%5Ballow(unused)%5D%0Aextern%20crate%20foo%3B%0Afn%20main()%20%7B%0Ause%20foo%3A%3Adummy%3B%0Adummy()%3B%0A%7D&edition=2015"]' "Run"
+// @matches foo/index.html '//a[@class="test-arrow"][@href="https://example.com/?code=%23!%5Ballow(unused)%5D%0Aextern%20crate%20r%23foo%3B%0Afn%20main()%20%7B%0Ause%20foo%3A%3Adummy%3B%0Adummy()%3B%0A%7D&edition=2015"]' "Run"