rust/compiler/rustc_interface/src
bors 56cd04af5c 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.
2022-02-10 09:37:07 +00:00
..
callbacks.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
interface.rs clippy::perf fixes 2022-02-03 21:45:51 +01:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
passes.rs Ensure that queries only return Copy types. 2022-02-09 20:07:38 +01:00
proc_macro_decls.rs Avoid more invocations of hir_crate query. 2021-09-29 23:16:47 +02:00
queries.rs Auto merge of #93724 - Mark-Simulacrum:drop-query-stats, r=michaelwoerister 2022-02-09 15:53:10 +00:00
tests.rs Auto merge of #93724 - Mark-Simulacrum:drop-query-stats, r=michaelwoerister 2022-02-09 15:53:10 +00:00
util.rs Use let_else in even more places 2022-01-18 21:37:57 +01:00