From 548ba13265c702cf98a163fc11e5bc04c57d2121 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 3 Sep 2023 12:45:23 +0000 Subject: Register the file while computing its start position. --- compiler/rustc_span/src/source_map/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 d5cb3dac55c..7689e6afac5 100644 --- a/compiler/rustc_span/src/source_map/tests.rs +++ b/compiler/rustc_span/src/source_map/tests.rs @@ -244,7 +244,7 @@ fn t10() { name, src_hash, name_hash, - source_len.to_usize(), + source_len.to_u32(), CrateNum::new(0), lines, multibyte_chars, -- cgit 1.4.1-3-g733a5