diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-12-19 22:34:26 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-12-19 22:34:26 +0100 |
| commit | fa8ef253720446959a7bab4593c62a1819563cbc (patch) | |
| tree | 40f93c31d0a7617097384c9a55a721eebd344f74 /compiler/rustc_span/src/source_map | |
| parent | be69926a7314200f367e6e9b21e44a2ad3b11ba7 (diff) | |
Unify SourceFile::name_hash and StableSourceFileId
Diffstat (limited to 'compiler/rustc_span/src/source_map')
| -rw-r--r-- | compiler/rustc_span/src/source_map/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/source_map/tests.rs b/compiler/rustc_span/src/source_map/tests.rs index 113ca493d36..130522a302d 100644 --- a/compiler/rustc_span/src/source_map/tests.rs +++ b/compiler/rustc_span/src/source_map/tests.rs @@ -234,14 +234,14 @@ fn t10() { multibyte_chars, non_narrow_chars, normalized_pos, - name_hash, + stable_id, .. } = (*src_file).clone(); let imported_src_file = sm.new_imported_source_file( name, src_hash, - name_hash, + stable_id, source_len.to_u32(), CrateNum::new(0), FreezeLock::new(lines.read().clone()), |
