diff options
| author | bors <bors@rust-lang.org> | 2020-05-27 18:31:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-27 18:31:45 +0000 |
| commit | 664fcd3f046e2a6824602da0fad81e3e2bb0d409 (patch) | |
| tree | ed667621520f5a6c31b14fc06365cdf4b0309afa /src/librustc_data_structures | |
| parent | 2873165725c15e96dae521a412065c144d9c7a25 (diff) | |
| parent | ebc7eda9e75829305a31a00037056a5365d261fe (diff) | |
| download | rust-664fcd3f046e2a6824602da0fad81e3e2bb0d409.tar.gz rust-664fcd3f046e2a6824602da0fad81e3e2bb0d409.zip | |
Auto merge of #71996 - Marwes:detach_undo_log, r=nikomatsakis
perf: Revert accidental inclusion of a part of #69218 This was accidentally included in #69464 after a rebase and given how much `inflate` and `keccak` stresses the obligation forest seems like a likely culprit to the regression in those benchmarks. (It is necessary in #69218 as obligation forest needs to accurately track the root variables or unifications will get lost)
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/snapshot_map/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_data_structures/snapshot_map/mod.rs b/src/librustc_data_structures/snapshot_map/mod.rs index 52865f55f78..b4cc85293f7 100644 --- a/src/librustc_data_structures/snapshot_map/mod.rs +++ b/src/librustc_data_structures/snapshot_map/mod.rs @@ -37,6 +37,7 @@ pub enum UndoLog<K, V> { } impl<K, V, M, L> SnapshotMap<K, V, M, L> { + #[inline] pub fn with_log<L2>(&mut self, undo_log: L2) -> SnapshotMap<K, V, &mut M, L2> { SnapshotMap { map: &mut self.map, undo_log, _marker: PhantomData } } |
