From c2492ec0df5fb7804bf6bb47481bbc52df052200 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 31 Jul 2024 01:59:22 -0400 Subject: [PATCH] Fix a missing fragment specifier in rustdoc tests --- tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html | 4 ++-- tests/rustdoc/macro-generated-macro.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html b/tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html index 28f15522a82f..4dcc8111c6ff 100644 --- a/tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html +++ b/tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html @@ -1,7 +1,7 @@ macro_rules! morestuff { ( - <= "space between most kinds of tokens" : 1 $x + @ :: >>= 'static - "no space inside paren or bracket" : (2 a) [2 a] $(2 $a:tt)* + <= "space between most kinds of tokens" : 1 $x:ident + @ :: >>= + 'static "no space inside paren or bracket" : (2 a) [2 a] $(2 $a:tt)* "space inside curly brace" : { 2 a } "no space inside empty delimiters" : () [] {} "no space before comma or semicolon" : a, (a), { a }, a; [T; 0]; diff --git a/tests/rustdoc/macro-generated-macro.rs b/tests/rustdoc/macro-generated-macro.rs index e77d0cf89e74..dfb152bafb62 100644 --- a/tests/rustdoc/macro-generated-macro.rs +++ b/tests/rustdoc/macro-generated-macro.rs @@ -25,7 +25,7 @@ make_macro!(linebreak 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 //@ snapshot macro_morestuff_pre macro_generated_macro/macro.morestuff.html //pre/text() make_macro!(morestuff - "space between most kinds of tokens": 1 $x + @ :: >>= 'static + "space between most kinds of tokens": 1 $x:ident + @ :: >>= 'static "no space inside paren or bracket": (2 a) [2 a] $(2 $a:tt)* "space inside curly brace": { 2 a } "no space inside empty delimiters": () [] {}