diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-01-17 17:09:04 -0500 | 
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-01-17 17:09:55 -0500 | 
| commit | 510fcd318b61d0e45165cdb0de880ee2f4f9cde2 (patch) | |
| tree | 4da2d95424863ae37c416f9ceaf5001327211dc5 /compiler/rustc_span/src/source_map.rs | |
| parent | c58a5da7d48ff3887afe4c618dc04defdee3dab5 (diff) | |
| download | rust-510fcd318b61d0e45165cdb0de880ee2f4f9cde2.tar.gz rust-510fcd318b61d0e45165cdb0de880ee2f4f9cde2.zip | |
Use UnhashMap for a few more maps
This avoids hashing data that's already hashed.
Diffstat (limited to 'compiler/rustc_span/src/source_map.rs')
| -rw-r--r-- | compiler/rustc_span/src/source_map.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs index 72a8b23721d..df7635e447d 100644 --- a/compiler/rustc_span/src/source_map.rs +++ b/compiler/rustc_span/src/source_map.rs @@ -10,8 +10,8 @@ //! information, source code snippets, etc. use crate::*; -use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::sync::{IntoDynSyncSend, MappedReadGuard, ReadGuard, RwLock}; +use rustc_data_structures::unhash::UnhashMap; use std::fs; use std::io::{self, BorrowedBuf, Read}; use std::path::{self}; @@ -164,7 +164,7 @@ impl FileLoader for RealFileLoader { #[derive(Default)] struct SourceMapFiles { source_files: monotonic::MonotonicVec<Lrc<SourceFile>>, - stable_id_to_source_file: FxHashMap<StableSourceFileId, Lrc<SourceFile>>, + stable_id_to_source_file: UnhashMap<StableSourceFileId, Lrc<SourceFile>>, } pub struct SourceMap { | 
