diff options
| author | bors <bors@rust-lang.org> | 2022-04-22 13:56:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-22 13:56:10 +0000 |
| commit | 41ef7678061dde625bf273ab6b036aebd7153a43 (patch) | |
| tree | 2357a5427a5431b67c9454ca8945f9e08b21fdff /compiler/rustc_codegen_cranelift/src | |
| parent | a8272f23cc121cc3e98f3148c8dab532decc7b90 (diff) | |
| parent | eed91ee8b3624bec1bbb19b2d309a3d1dbcce81b (diff) | |
| download | rust-41ef7678061dde625bf273ab6b036aebd7153a43.tar.gz rust-41ef7678061dde625bf273ab6b036aebd7153a43.zip | |
Auto merge of #96226 - xldenis:thir-clone, r=oli-obk
Make all thir types implement clone This PR adds `Clone` impl to all of the `Thir<'tcx>` types. I would like to be able to clone a `Thir` body so that I can make a copy in my rustc driver without breaking further compilation. Without this my driver is forced to run in the `after_expansion` callback and thus doesn't benefit from running all the safety checks that `rustc` usually does, instead i need to do them all myself.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
0 files changed, 0 insertions, 0 deletions
