about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json
diff options
context:
space:
mode:
authorAskar Safin <safinaskar@mail.ru>2025-02-03 06:44:41 +0300
committerAskar Safin <safinaskar@mail.ru>2025-02-03 13:25:57 +0300
commit0a21f1d0a2fe9e84727a2de735fdcf55e8820db6 (patch)
tree790f1892d90201443d543562fb9d6cdaf0c6b33f /compiler/rustc_errors/src/json
parent613bdd49978298648ed05ace086bd1ecad54b44a (diff)
downloadrust-0a21f1d0a2fe9e84727a2de735fdcf55e8820db6.tar.gz
rust-0a21f1d0a2fe9e84727a2de735fdcf55e8820db6.zip
tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`
Diffstat (limited to 'compiler/rustc_errors/src/json')
-rw-r--r--compiler/rustc_errors/src/json/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs
index cebaf7c1cfe..f7892db2961 100644
--- a/compiler/rustc_errors/src/json/tests.rs
+++ b/compiler/rustc_errors/src/json/tests.rs
@@ -39,7 +39,7 @@ impl<T: Write> Write for Shared<T> {
 /// Test the span yields correct positions in JSON.
 fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
     rustc_span::create_default_session_globals_then(|| {
-        let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
+        let sm = Arc::new(SourceMap::new(FilePathMapping::empty()));
         sm.new_source_file(Path::new("test.rs").to_owned().into(), code.to_owned());
         let fallback_bundle =
             crate::fallback_fluent_bundle(vec![crate::DEFAULT_LOCALE_RESOURCE], false);