Skip to content

Commit

Permalink
Fix elided lifetimes in rust-lang/rust
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Aug 21, 2023
1 parent fad7d22 commit b1c609e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/test-utils/src/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b1c609e

Please sign in to comment.