Skip to content

Commit bef3551

Browse files
committed
non_minimal_cfg
1 parent e6f9f4c commit bef3551

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ needless_doctest_main = "allow"
179179
new_without_default = "allow"
180180
non_canonical_clone_impl = "allow"
181181
non_canonical_partial_ord_impl = "allow"
182-
non_minimal_cfg = "allow"
183182
only_used_in_recursion = "allow"
184183
op_ref = "allow"
185184
option_map_unit_fn = "allow"

crates/rust-analyzer/src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use lsp_server::Connection;
1717
use rust_analyzer::{cli::flags, config::Config, from_json};
1818
use vfs::AbsPathBuf;
1919

20-
#[cfg(all(feature = "mimalloc"))]
20+
#[cfg(feature = "mimalloc")]
2121
#[global_allocator]
2222
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
2323

lib/line-index/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ unsafe fn analyze_source_file_sse2(
339339
}
340340

341341
#[target_feature(enable = "neon")]
342-
#[cfg(any(target_arch = "aarch64"))]
342+
#[cfg(target_arch = "aarch64")]
343343
#[inline]
344344
// See https://community.arm.com/arm-community-blogs/b/infrastructure-solutions-blog/posts/porting-x86-vector-bitmask-optimizations-to-arm-neon
345345
//
@@ -354,7 +354,7 @@ unsafe fn move_mask(v: std::arch::aarch64::uint8x16_t) -> u64 {
354354
}
355355

356356
#[target_feature(enable = "neon")]
357-
#[cfg(any(target_arch = "aarch64"))]
357+
#[cfg(target_arch = "aarch64")]
358358
unsafe fn analyze_source_file_neon(
359359
src: &str,
360360
lines: &mut Vec<TextSize>,

0 commit comments

Comments
 (0)