diff options
| author | Alik Aslanyan <inline0@protonmail.com> | 2021-12-21 22:31:23 +0400 |
|---|---|---|
| committer | Alik Aslanyan <inline0@protonmail.com> | 2021-12-21 22:40:21 +0400 |
| commit | 852dea89b2289fe101f2bbd807c0abdd09902e08 (patch) | |
| tree | 9f6ef5d98a06a6dd7292f3bd7215e30f0912a056 /compiler/rustc_metadata/src | |
| parent | 8ad3c1dd1d47f9ce7dfdf4a14c70c67e1790b0f5 (diff) | |
| download | rust-852dea89b2289fe101f2bbd807c0abdd09902e08.tar.gz rust-852dea89b2289fe101f2bbd807c0abdd09902e08.zip | |
Remove ArenaCacheSelector for visible_parent_map query.
Optimize visible_parent_map to use LRC to prevent unnecessary cloning
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index 4e5d21049a0..3f3b83cf795 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -360,7 +360,7 @@ pub fn provide(providers: &mut Providers) { visible_parent_map.entry(child).or_insert(parent); } - visible_parent_map + Lrc::new(visible_parent_map) }, dependency_formats: |tcx, ()| Lrc::new(crate::dependency_format::calculate(tcx)), |
