Skip to content

Commit 8eb3a95

Browse files
committed
Fix rustdoc test case
1 parent 9ee696e commit 8eb3a95

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/test/rustdoc/macro_rules-matchers.rs

+6-12
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,31 @@
66
// @has 'foo/macro.todo.html'
77
// @has - '//span[@class="macro"]' 'macro_rules!'
88
// @has - '//span[@class="ident"]' 'todo'
9-
// Note: count = 2 * ('=' + '>') + '+' = 2 * (1 + 1) + 1 = 5
10-
// @count - '//pre[@class="rust macro"]//span[@class="op"]' 5
9+
// Note: the only op is the `+`
10+
// @count - '//pre[@class="rust macro"]//span[@class="op"]' 1
1111

12-
// @has - '{ ()'
13-
// @has - '//span[@class="op"]' '='
14-
// @has - '//span[@class="op"]' '>'
15-
// @has - '{ ... };'
16-
17-
// @has - '($('
12+
// @has - '{ () => { ... }; ($('
1813
// @has - '//span[@class="macro-nonterminal"]' '$'
1914
// @has - '//span[@class="macro-nonterminal"]' 'arg'
2015
// @has - ':'
2116
// @has - '//span[@class="ident"]' 'tt'
2217
// @has - '),'
2318
// @has - '//span[@class="op"]' '+'
24-
// @has - ')'
19+
// @has - ') => { ... }; }'
2520
pub use std::todo;
2621

2722
mod mod1 {
2823
// @has 'foo/macro.macro1.html'
2924
// @has - 'macro_rules!'
3025
// @has - 'macro1'
31-
// @has - '{ ()'
32-
// @has - '($('
26+
// @has - '{ () => { ... }; ($('
3327
// @has - '//span[@class="macro-nonterminal"]' '$'
3428
// @has - '//span[@class="macro-nonterminal"]' 'arg'
3529
// @has - ':'
3630
// @has - 'expr'
3731
// @has - '),'
3832
// @has - '+'
39-
// @has - ')'
33+
// @has - ') => { ... }; }'
4034
#[macro_export]
4135
macro_rules! macro1 {
4236
() => {};

0 commit comments

Comments
 (0)