about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/tests.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-10-07 11:03:52 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-10-07 13:56:29 +1100
commit731469fee50133528c1904a07da73e739db6f6c4 (patch)
treede053a2993fbd3c011f8f25aaf2601fc30ef17ff /compiler/rustc_errors/src/tests.rs
parent55a22d2a63334e0faff0202b72a31ce832b56125 (diff)
downloadrust-731469fee50133528c1904a07da73e739db6f6c4.tar.gz
rust-731469fee50133528c1904a07da73e739db6f6c4.zip
Convert `Option<&Lrc<T>>` return types to `Option<&T>`.
It's simpler and more concise.
Diffstat (limited to 'compiler/rustc_errors/src/tests.rs')
-rw-r--r--compiler/rustc_errors/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/tests.rs b/compiler/rustc_errors/src/tests.rs
index 17a1635bd11..70179237e5d 100644
--- a/compiler/rustc_errors/src/tests.rs
+++ b/compiler/rustc_errors/src/tests.rs
@@ -1,4 +1,4 @@
-use rustc_data_structures::sync::{IntoDynSyncSend, Lrc};
+use rustc_data_structures::sync::IntoDynSyncSend;
 use rustc_error_messages::fluent_bundle::resolver::errors::{ReferenceKind, ResolverError};
 use rustc_error_messages::{DiagMessage, langid};
 
@@ -12,7 +12,7 @@ struct Dummy {
 }
 
 impl Translate for Dummy {
-    fn fluent_bundle(&self) -> Option<&Lrc<FluentBundle>> {
+    fn fluent_bundle(&self) -> Option<&FluentBundle> {
         None
     }