diff --git a/Cargo.toml b/Cargo.toml index 35b439752b..3abf96ffaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -179,7 +179,6 @@ needless_doctest_main = "allow" new_without_default = "allow" non_canonical_clone_impl = "allow" non_canonical_partial_ord_impl = "allow" -non_minimal_cfg = "allow" only_used_in_recursion = "allow" op_ref = "allow" option_map_unit_fn = "allow" diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index 7432f0f7a7..0438729190 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs @@ -17,7 +17,7 @@ use lsp_server::Connection; use rust_analyzer::{cli::flags, config::Config, from_json}; use vfs::AbsPathBuf; -#[cfg(all(feature = "mimalloc"))] +#[cfg(feature = "mimalloc")] #[global_allocator] static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; diff --git a/lib/line-index/src/lib.rs b/lib/line-index/src/lib.rs index 1614504f80..1ab62e9923 100644 --- a/lib/line-index/src/lib.rs +++ b/lib/line-index/src/lib.rs @@ -339,7 +339,7 @@ unsafe fn analyze_source_file_sse2( } #[target_feature(enable = "neon")] -#[cfg(any(target_arch = "aarch64"))] +#[cfg(target_arch = "aarch64")] #[inline] // See https://community.arm.com/arm-community-blogs/b/infrastructure-solutions-blog/posts/porting-x86-vector-bitmask-optimizations-to-arm-neon // @@ -354,7 +354,7 @@ unsafe fn move_mask(v: std::arch::aarch64::uint8x16_t) -> u64 { } #[target_feature(enable = "neon")] -#[cfg(any(target_arch = "aarch64"))] +#[cfg(target_arch = "aarch64")] unsafe fn analyze_source_file_neon( src: &str, lines: &mut Vec,