From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/run-make/rustdoc-scrape-examples-remap/src/a.rs | 1 + tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/run-make/rustdoc-scrape-examples-remap/src/a.rs create mode 100644 tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs (limited to 'tests/run-make/rustdoc-scrape-examples-remap/src') diff --git a/tests/run-make/rustdoc-scrape-examples-remap/src/a.rs b/tests/run-make/rustdoc-scrape-examples-remap/src/a.rs new file mode 100644 index 000000000..b76b4321d --- /dev/null +++ b/tests/run-make/rustdoc-scrape-examples-remap/src/a.rs @@ -0,0 +1 @@ +pub fn foo() {} diff --git a/tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs new file mode 100644 index 000000000..f525a4270 --- /dev/null +++ b/tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs @@ -0,0 +1,8 @@ +// @has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs' +// @has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs' + +#[path = "a.rs"] +pub mod b; + +#[path = "a.rs"] +pub mod c; -- cgit v1.2.3