about summary refs log tree commit diff
path: root/compiler/rustc_span/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-07 11:30:33 +0000
committerbors <bors@rust-lang.org>2024-10-07 11:30:33 +0000
commit7caad6925314911eefe54b040d4bc5be940e8f92 (patch)
tree2f684b45872dfefad4784760ab3077c529659176 /compiler/rustc_span/src/lib.rs
parent0b16baa570d26224612ea27f76d68e4c6ca135cc (diff)
parentfd2278d017e3a06efb9ee8698dcd4a5b95d2482d (diff)
downloadrust-7caad6925314911eefe54b040d4bc5be940e8f92.tar.gz
rust-7caad6925314911eefe54b040d4bc5be940e8f92.zip
Auto merge of #131354 - matthiaskrgr:rollup-hprnng2, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - #131331 (Revert "warn_old_master_branch" check)
 - #131344 (Avoid `&Lrc<T>` in various places)
 - #131346 (Restrict `ignore-mode-*` directives)
 - #131353 (Add documentation for `runtest::check_rustdoc_test_option` method)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_span/src/lib.rs')
-rw-r--r--compiler/rustc_span/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index b55465ddef7..5b1be5bca05 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -1380,7 +1380,7 @@ pub enum ExternalSourceKind {
 }
 
 impl ExternalSource {
-    pub fn get_source(&self) -> Option<&Lrc<String>> {
+    pub fn get_source(&self) -> Option<&str> {
         match self {
             ExternalSource::Foreign { kind: ExternalSourceKind::Present(ref src), .. } => Some(src),
             _ => None,