about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-10-27 21:48:28 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-11-02 21:05:09 +0100
commit2f8a068cb760d0845e59b39444cb67479b2d2163 (patch)
tree634035eadd250e121442f275503316cd9f7baa49 /compiler/rustc_expand/src/mbe.rs
parent6c47848c2553ea2703ef12e1e767cf583ff390c6 (diff)
downloadrust-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.rs2
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