diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-21 20:43:04 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-08-21 23:53:09 +0000 |
| commit | b1c609e2a6716cb76d2690d86d2d9c255cacbb18 (patch) | |
| tree | 1d3aadb7e0b969c4e3285905d31b08052414e42c | |
| parent | fad7d220fd2daefe8ee778b8cafbbeaf2dda4fc5 (diff) | |
| download | rust-b1c609e2a6716cb76d2690d86d2d9c255cacbb18.tar.gz rust-b1c609e2a6716cb76d2690d86d2d9c255cacbb18.zip | |
Fix elided lifetimes in rust-lang/rust
| -rw-r--r-- | src/bootstrap/tool.rs | 2 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/crates/test-utils/src/fixture.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index e6d27757ac6..07ff3da6b4a 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -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"; } diff --git a/src/tools/rust-analyzer/crates/test-utils/src/fixture.rs b/src/tools/rust-analyzer/crates/test-utils/src/fixture.rs index 75e7a3fec00..3f8b5a08969 100644 --- a/src/tools/rust-analyzer/crates/test-utils/src/fixture.rs +++ b/src/tools/rust-analyzer/crates/test-utils/src/fixture.rs @@ -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) |
