diff options
| author | bors <bors@rust-lang.org> | 2022-03-18 14:50:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-18 14:50:29 +0000 |
| commit | 1bfe40d11c3630254504fb73eeccfca28d50df52 (patch) | |
| tree | 54e8e543d73f051ddee3bb7f52ba8f955c8e6c36 /compiler/rustc/src | |
| parent | a8adf7685a4ddd16e985d34d9838a75a04ca4181 (diff) | |
| parent | 201a86046c3b08820c6b44b85c640c187d87756b (diff) | |
| download | rust-1bfe40d11c3630254504fb73eeccfca28d50df52.tar.gz rust-1bfe40d11c3630254504fb73eeccfca28d50df52.zip | |
Auto merge of #95068 - TaKO8Ki:use-create-snapshot-for-diagnostic, r=davidtwco
Use `Parser.create_snapshot_for_diagnostic` instead of `Parser.clone()` Use [`create_snapshot_for_diagnostic`](https://github.com/rust-lang/rust/blob/cd119057160cedea245aa2679add56723f3dc784/compiler/rustc_parse/src/parser/diagnostics.rs#L214-L223) I implemented in https://github.com/rust-lang/rust/pull/94731 instead of `self.clone()` to avoid duplicate unclosed delims errors being emitted when the `Parser` is dropped.
Diffstat (limited to 'compiler/rustc/src')
0 files changed, 0 insertions, 0 deletions
