-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add #[derive(Clone)] to TokenTreeIter #43280
Conversation
cc @nrc, you may also be able to take a look at this! |
@bors: r+ |
📌 Commit b525abb has been approved by |
@bors rollup |
⌛ Testing commit b525abb with merge 1bdd10ce04329ec3e2ceaeb26a905f61441799a3... |
💔 Test failed - status-travis |
@bors retry (a current retried build appears to have got past the issue, so the cached dockerfile should be used from now on which will hopefully resolve the issue) |
Add #[derive(Clone)] to TokenTreeIter I've found this useful for writing backtracking parsers. The underlying `Cursor` implements `Clone` already, so it's just a matter of adding `#[derive(Clone)]` to the type. r? @jseyfried
Add #[derive(Clone)] to TokenTreeIter I've found this useful for writing backtracking parsers. The underlying `Cursor` implements `Clone` already, so it's just a matter of adding `#[derive(Clone)]` to the type. r? @jseyfried
☀️ Test successful - status-appveyor, status-travis |
I've found this useful for writing backtracking parsers.
The underlying
Cursor
implementsClone
already, so it's just a matter of adding#[derive(Clone)]
to the type.r? @jseyfried