about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-10 09:37:07 +0000
committerbors <bors@rust-lang.org>2022-02-10 09:37:07 +0000
commit22a30689ed3b4010ae1c13a69b88ba90ea8db187 (patch)
tree9a5584d66d3d7be6f1a104745abcbc6d22379773 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent20506e31aba082c3acb3ee1dffff80d1362ba83b (diff)
parent1b2337c19d713ff0e9d0ac614789894bcad6b598 (diff)
downloadrust-22a30689ed3b4010ae1c13a69b88ba90ea8db187.tar.gz
rust-22a30689ed3b4010ae1c13a69b88ba90ea8db187.zip
Auto merge of #93511 - cjgillot:query-copy, r=oli-obk
Ensure that queries only return Copy types.

This should pervent the perf footgun of returning a result with an expensive `Clone` impl (like a `Vec` of a hash map).

I went for the stupid solution of allocating on an arena everything that was not `Copy`. Some query results could be made Copy easily, but I did not really investigate.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions