Skip to content

Commit b1c609e

Browse files
Fix elided lifetimes in rust-lang/rust
1 parent fad7d22 commit b1c609e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ pub struct RustAnalyzer {
601601
}
602602

603603
impl RustAnalyzer {
604-
pub const ALLOW_FEATURES: &str =
604+
pub const ALLOW_FEATURES: &'static str =
605605
"proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink";
606606
}
607607

src/tools/rust-analyzer/crates/test-utils/src/fixture.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl FixtureWithProjectMeta {
313313
}
314314

315315
impl MiniCore {
316-
const RAW_SOURCE: &str = include_str!("./minicore.rs");
316+
const RAW_SOURCE: &'static str = include_str!("./minicore.rs");
317317

318318
fn has_flag(&self, flag: &str) -> bool {
319319
self.activated_flags.iter().any(|it| it == flag)

0 commit comments

Comments
 (0)