forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#95390 - nnethercote:allow-doc-comments-in-m…
…acros, r=petrochenkov Ignore doc comments in a declarative macro matcher. Fixes rust-lang#95267. Reverts to the old behaviour before rust-lang#95159 introduced a regression. r? `@petrochenkov`
- Loading branch information
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// check-pass | ||
|
||
// This is a valid macro. Commit 4 in #95159 broke things such that it failed | ||
// with a "missing tokens in macro arguments" error, as reported in #95267. | ||
macro_rules! f { | ||
( | ||
/// ab | ||
) => {}; | ||
} | ||
|
||
fn main() { | ||
f!(); | ||
} |