Skip to content

Add #[derive(Clone)] to TokenTreeIter#43280

Merged
bors merged 1 commit into
rust-lang:masterfrom
lambda-fairy:token-tree-iter-clone
Jul 24, 2017
Merged

Add #[derive(Clone)] to TokenTreeIter#43280
bors merged 1 commit into
rust-lang:masterfrom
lambda-fairy:token-tree-iter-clone

Conversation

@lambda-fairy

Copy link
Copy Markdown
Contributor

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

@carols10cents carols10cents added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 17, 2017
@alexcrichton

Copy link
Copy Markdown
Member

cc @nrc, you may also be able to take a look at this!

@nrc

nrc commented Jul 20, 2017

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Jul 20, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit b525abb has been approved by nrc

@frewsxcv

Copy link
Copy Markdown
Contributor

@bors rollup

@bors

bors commented Jul 21, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b525abb with merge 1bdd10ce04329ec3e2ceaeb26a905f61441799a3...

@bors

bors commented Jul 21, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@aidanhs

aidanhs commented Jul 21, 2017

Copy link
Copy Markdown
Contributor

Spurious failure, having a look, cc #43319, #43343, #43344

@aidanhs

aidanhs commented Jul 21, 2017

Copy link
Copy Markdown
Contributor

@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)

TimNN added a commit to TimNN/rust that referenced this pull request Jul 21, 2017
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
bors added a commit that referenced this pull request Jul 21, 2017
Rollup of 8 pull requests

- Successful merges: #43046, #43256, #43280, #43297, #43313, #43319, #43322, #43343
- Failed merges:
@bors

bors commented Jul 24, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b525abb with merge 9a70c3a...

bors added a commit that referenced this pull request Jul 24, 2017
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
@bors

bors commented Jul 24, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: nrc
Pushing 9a70c3a to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants