Skip to content

Commit c573643

Browse files
felix91grVeykril
authored andcommitted
Remove trailing semicolon for future compatibility
Done to comply with #[deny(semicolon_in_expressions_from_macros)], which itself is a consequence of #[deny(future_incompatible)]
1 parent 2e1b183 commit c573643

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/decl-macros/minutiae/fragment-specifiers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ This means if this capture is passed onto another macro invocation that captures
363363
macro_rules! it_is_opaque {
364364
(()) => { "()" };
365365
(($tt:tt)) => { concat!("$tt is ", stringify!($tt)) };
366-
($vis:vis ,) => { it_is_opaque!( ($vis) ); }
366+
($vis:vis ,) => { it_is_opaque!( ($vis) ) }
367367
}
368368
fn main() {
369369
// this prints "$tt is ", as the recursive calls hits the second branch with
@@ -374,3 +374,4 @@ fn main() {
374374

375375
[`macro_rules`]: ../macro_rules.md
376376
[Visibility qualifier]: https://doc.rust-lang.org/reference/visibility-and-privacy.html
377+

0 commit comments

Comments
 (0)