Skip to content

Replace this.clone() with this.create_snapshot_for_diagnostic() - #95212

Merged
bors merged 1 commit into
rust-lang:masterfrom
TaKO8Ki:replace-this-clone-with-this-create-snapshot-for-diagnostic
Mar 23, 2022
Merged

Replace this.clone() with this.create_snapshot_for_diagnostic()#95212
bors merged 1 commit into
rust-lang:masterfrom
TaKO8Ki:replace-this-clone-with-this-create-snapshot-for-diagnostic

Conversation

@TaKO8Ki

Copy link
Copy Markdown
Member

Use create_snapshot_for_diagnostic I implemented in #94731 instead of this.clone() to avoid duplicate errors about unclosed delims being emitted when the Parser is dropped.

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 22, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cjgillot

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 22, 2022
@Dylan-DPC

Copy link
Copy Markdown
Member

r? @Dylan-DPC

@Dylan-DPC

Copy link
Copy Markdown
Member

@bors r+

@Dylan-DPC

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Mar 22, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit b86a1d1 has been approved by Dylan-DPC

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 22, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Mar 23, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 23, 2022
Rollup of 6 pull requests
Successful merges:
- rust-lang#91608 (Fold aarch64 feature +fp into +neon)
- rust-lang#92955 (add perf side effect docs to `Iterator::cloned()`)
- rust-lang#94713 (Add u16::is_utf16_surrogate)
- rust-lang#95212 (Replace `this.clone()` with `this.create_snapshot_for_diagnostic()`)
- rust-lang#95219 (Modernize `alloc-no-oom-handling` test)
- rust-lang#95222 (interpret/validity: improve clarity)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 0254928 into rust-lang:masterMar 23, 2022
@rustbotrustbot added this to the 1.61.0 milestone Mar 23, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@TaKO8Ki@rust-highfive@Dylan-DPC@bors@cjgillot@rustbot