Fix elided lifetimes in rust-lang/rust

This commit is contained in:
Michael Goulet 2023-08-21 20:43:04 +00:00
parent fad7d220fd
commit b1c609e2a6
2 changed files with 2 additions and 2 deletions

View File

@ -601,7 +601,7 @@ pub struct RustAnalyzer {
}
impl RustAnalyzer {
pub const ALLOW_FEATURES: &str =
pub const ALLOW_FEATURES: &'static str =
"proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink";
}

View File

@ -313,7 +313,7 @@ impl FixtureWithProjectMeta {
}
impl MiniCore {
const RAW_SOURCE: &str = include_str!("./minicore.rs");
const RAW_SOURCE: &'static str = include_str!("./minicore.rs");
fn has_flag(&self, flag: &str) -> bool {
self.activated_flags.iter().any(|it| it == flag)