about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/steal.rs
AgeCommit message (Collapse)AuthorLines
2023-01-12Harden the pre-tyctxt query system against accidental recomputationOli Scherer-0/+5
2021-11-07more clippy fixesMatthias Krüger-1/+1
2021-10-15Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, ↵Matthias Krüger-1/+1
r=petrochenkov" The PR had some unforseen perf regressions that are not as easy to find. Revert the PR for now. This reverts commit 6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073, reversing changes made to 86d6d2b7389fe1b339402c1798edae8b695fc9ef.
2021-10-10Apply clippy suggestionsClemens Wasser-1/+1
2021-09-25arrr caught ya callerEllen-4/+5
awd
2021-01-26Auto merge of #80692 - Aaron1011:feature/query-result-debug, r=estebankbors-0/+1
Enforce that query results implement Debug Currently, we require that query keys implement `Debug`, but we do not do the same for query values. This can make incremental compilation bugs difficult to debug - there isn't a good place to print out the result loaded from disk. This PR adds `Debug` bounds to several query-related functions, allowing us to debug-print the query value when an 'unstable fingerprint' error occurs. This required adding `#[derive(Debug)]` to a fairly large number of types - hopefully, this doesn't have much of an impact on compiler bootstrapping times.
2021-01-17Add track_caller to .steal()Joshua Nelson-1/+3
Before: ``` thread 'rustc' panicked at 'attempt to read from stolen value', /home/joshua/rustc/compiler/rustc_data_structures/src/steal.rs:43:15 ``` After: ``` thread 'rustc' panicked at 'attempt to steal from stolen value', compiler/rustc_mir/src/transform/mod.rs:423:25 ```
2021-01-16Enforce that query results implement DebugAaron Hill-0/+1
2020-11-14Move Steal to rustc_data_structures.Camille GILLOT-0/+51