diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-06 12:22:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 12:22:14 -0500 |
| commit | 91175bd932ea78cf4ae21bd0f11df3146da93293 (patch) | |
| tree | 5ca31baa26907071dd5b755fac1197914c632cb2 /compiler/rustc_codegen_llvm/src | |
| parent | e05a97769bd833e6eda6eca9481979f147804ab5 (diff) | |
| parent | b5f0c82eba0bdc1d753dc5e0e62326769d7360d2 (diff) | |
| download | rust-91175bd932ea78cf4ae21bd0f11df3146da93293.tar.gz rust-91175bd932ea78cf4ae21bd0f11df3146da93293.zip | |
Rollup merge of #137744 - skius:master, r=Nadrieril
Re-add `Clone`-derive on `Thir` This PR adds back `Clone` for `Thir`. If a tool wants to access a `thir_body` query result in the `Callbacks::after_analysis` hook, it can't do so (I think) without a `Clone` impl on `Thir`, because `check_unsafety` steals the value. With `Clone`, the `thir_body` query provider can be overriden to cache a clone of the `Thir`, circumventing that issue. Specifically, we need it for https://github.com/rust-corpus/qrates, [here](https://github.com/skius/qrates/blob/ca7a2301968a43862f2c04daffed71a9de8c333c/extractor/src/lib.rs#L205). Please let me know if there are issues with this PR/if there's another way to solve the problem at hand
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
