diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-10-27 21:48:28 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-11-02 21:05:09 +0100 |
| commit | 2f8a068cb760d0845e59b39444cb67479b2d2163 (patch) | |
| tree | 634035eadd250e121442f275503316cd9f7baa49 /compiler/rustc_expand/src/mbe.rs | |
| parent | 6c47848c2553ea2703ef12e1e767cf583ff390c6 (diff) | |
| download | rust-2f8a068cb760d0845e59b39444cb67479b2d2163.tar.gz rust-2f8a068cb760d0845e59b39444cb67479b2d2163.zip | |
Add `Tracker` to track matching operations
This should allow us to collect detailed information without slowing down the inital hot path.
Diffstat (limited to 'compiler/rustc_expand/src/mbe.rs')
| -rw-r--r-- | compiler/rustc_expand/src/mbe.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe.rs b/compiler/rustc_expand/src/mbe.rs index f42576b16f5..63bafd7b046 100644 --- a/compiler/rustc_expand/src/mbe.rs +++ b/compiler/rustc_expand/src/mbe.rs @@ -52,7 +52,7 @@ impl KleeneToken { /// A Kleene-style [repetition operator](https://en.wikipedia.org/wiki/Kleene_star) /// for token sequences. #[derive(Clone, PartialEq, Encodable, Decodable, Debug, Copy)] -enum KleeneOp { +pub(crate) enum KleeneOp { /// Kleene star (`*`) for zero or more repetitions ZeroOrMore, /// Kleene plus (`+`) for one or more repetitions |
