diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 11:03:52 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 13:56:29 +1100 |
| commit | 731469fee50133528c1904a07da73e739db6f6c4 (patch) | |
| tree | de053a2993fbd3c011f8f25aaf2601fc30ef17ff /compiler/rustc_codegen_ssa/src/back | |
| parent | 55a22d2a63334e0faff0202b72a31ce832b56125 (diff) | |
| download | rust-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_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 4d81ff933dd..e22dd8373bd 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -11,7 +11,6 @@ use rustc_ast::attr; use rustc_data_structures::fx::{FxHashMap, FxIndexMap}; use rustc_data_structures::memmap::Mmap; use rustc_data_structures::profiling::{SelfProfilerRef, VerboseTimingGuard}; -use rustc_data_structures::sync::Lrc; use rustc_errors::emitter::Emitter; use rustc_errors::translation::Translate; use rustc_errors::{ @@ -1889,7 +1888,7 @@ impl SharedEmitter { } impl Translate for SharedEmitter { - fn fluent_bundle(&self) -> Option<&Lrc<FluentBundle>> { + fn fluent_bundle(&self) -> Option<&FluentBundle> { None } @@ -1924,7 +1923,7 @@ impl Emitter for SharedEmitter { ); } - fn source_map(&self) -> Option<&Lrc<SourceMap>> { + fn source_map(&self) -> Option<&SourceMap> { None } } |
