From fa8ef253720446959a7bab4593c62a1819563cbc Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Tue, 19 Dec 2023 22:34:26 +0100 Subject: Unify SourceFile::name_hash and StableSourceFileId --- compiler/rustc_span/src/source_map/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_span/src/source_map') 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()), -- cgit 1.4.1-3-g733a5