diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-08-31 22:12:47 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-09-07 13:05:05 +0200 |
| commit | f49382c0508db608aa9c33d6a8c77d2955d8f62c (patch) | |
| tree | 85be68eacbc6325822cf64fba8e4841474065607 /compiler/rustc_span/src/source_map.rs | |
| parent | c5996b80beaba54502fa86583b48cd6980b17b18 (diff) | |
| download | rust-f49382c0508db608aa9c33d6a8c77d2955d8f62c.tar.gz rust-f49382c0508db608aa9c33d6a8c77d2955d8f62c.zip | |
Use `Freeze` for `SourceFile.lines`
Diffstat (limited to 'compiler/rustc_span/src/source_map.rs')
| -rw-r--r-- | compiler/rustc_span/src/source_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs index 20bd57cae6d..68727a6c40e 100644 --- a/compiler/rustc_span/src/source_map.rs +++ b/compiler/rustc_span/src/source_map.rs @@ -328,7 +328,7 @@ impl SourceMap { name_hash: Hash128, source_len: u32, cnum: CrateNum, - file_local_lines: Lock<SourceFileLines>, + file_local_lines: FreezeLock<SourceFileLines>, multibyte_chars: Vec<MultiByteChar>, non_narrow_chars: Vec<NonNarrowChar>, normalized_pos: Vec<NormalizedPos>, |
