Skip to content

Commit fd5a710

Browse files
committed
Use has for non-regexes
1 parent dcf4991 commit fd5a710

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/rustdoc/description.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
//! This is the contents of the test crate docstring.
55
//! It should not show up in the description.
66
7-
// @matches 'foo/index.html' '//meta[@name="description"]/@content' \
7+
// @has 'foo/index.html' '//meta[@name="description"]/@content' \
88
// 'Description test crate'
99

10-
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
10+
// @has 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
1111
// 'First paragraph description.'
1212
/// First paragraph description.
1313
///
@@ -16,7 +16,7 @@ pub mod foo_mod {
1616
pub struct __Thing {}
1717
}
1818

19-
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
19+
// @has 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
2020
// 'Only paragraph.'
2121
/// Only paragraph.
2222
pub fn foo_fn() {}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#![crate_name = "foo"]
22

3-
// @matches 'foo/index.html' '//meta[@name="description"]/@content' \
3+
// @has 'foo/index.html' '//meta[@name="description"]/@content' \
44
// 'API documentation for the Rust `foo` crate.'
55

6-
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
6+
// @has 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
77
// 'API documentation for the Rust `foo_mod` mod in crate `foo`.'
88
pub mod foo_mod {
99
pub struct __Thing {}
1010
}
1111

12-
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
12+
// @has 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
1313
// 'API documentation for the Rust `foo_fn` fn in crate `foo`.'
1414
pub fn foo_fn() {}

0 commit comments

Comments
 (0)