about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-23 03:05:32 +0100
committerGitHub <noreply@github.com>2022-03-23 03:05:32 +0100
commit0254928213617d0847305cce428ebca2daf9d637 (patch)
tree3f9c328eadd1d84b1c595f7d7fce8295b70e16dd /compiler/rustc_codegen_gcc/example/std_example.rs
parent25acd9331e61e773233c126a6117bd5614b945a7 (diff)
parentb86a1d1c07fcf9049bbe3f61c369932d5d8b169a (diff)
downloadrust-0254928213617d0847305cce428ebca2daf9d637.tar.gz
rust-0254928213617d0847305cce428ebca2daf9d637.zip
Rollup merge of #95212 - TaKO8Ki:replace-this-clone-with-this-create-snapshot-for-diagnostic, r=Dylan-DPC
Replace `this.clone()` with `this.create_snapshot_for_diagnostic()`

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 `this.clone()` to avoid duplicate errors about unclosed delims being emitted when the `Parser` is dropped.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions