From c15e3a587a6619f5c822b91a0ea726abc71f35f5 Mon Sep 17 00:00:00 2001 From: Chanhee Cho Date: Tue, 2 Apr 2024 17:31:49 +0000 Subject: [PATCH] minor tweaks --- crates/ide-assists/src/tests.rs | 1 + crates/parser/src/syntax_kind.rs | 3 ++- crates/test-utils/src/fixture.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ide-assists/src/tests.rs b/crates/ide-assists/src/tests.rs index 9e741715ef5b..1411740c3c19 100644 --- a/crates/ide-assists/src/tests.rs +++ b/crates/ide-assists/src/tests.rs @@ -1,5 +1,6 @@ #![allow(dead_code)] #![allow(unused)] +#![allow(unused_imports)] mod generated; #[cfg(not(feature = "in-rust-tree"))] mod sourcegen; diff --git a/crates/parser/src/syntax_kind.rs b/crates/parser/src/syntax_kind.rs index 0483adc776fa..3c68d90dc185 100644 --- a/crates/parser/src/syntax_kind.rs +++ b/crates/parser/src/syntax_kind.rs @@ -1,10 +1,11 @@ //! Defines [`SyntaxKind`] -- a fieldless enum of all possible syntactic //! constructs of the Rust language. +#[allow(unused_imports)] mod generated; #[allow(unreachable_pub)] -pub use self::generated::{SyntaxKind, T}; +pub use self::generated::SyntaxKind; impl From for SyntaxKind { #[inline] diff --git a/crates/test-utils/src/fixture.rs b/crates/test-utils/src/fixture.rs index 05f32f8e51ea..c6f86b7e0a72 100644 --- a/crates/test-utils/src/fixture.rs +++ b/crates/test-utils/src/fixture.rs @@ -254,7 +254,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)