gate benchmark feature on nightly toolchain

Closes #12653
This commit is contained in:
xtqqczze
2026-04-19 02:20:12 +01:00
committed by Johannes Altmanninger
parent 86c052b6ba
commit 2304077e0d
6 changed files with 25 additions and 3 deletions

View File

@@ -2889,7 +2889,7 @@ fn test_is_same_node() {
}
// Run with cargo +nightly bench --features=benchmark
#[cfg(feature = "benchmark")]
#[cfg(all(nightly, feature = "benchmark"))]
#[cfg(test)]
mod bench {
extern crate test;

View File

@@ -707,7 +707,7 @@ macro_rules! check_decode {
}
}
#[cfg(feature = "benchmark")]
#[cfg(all(nightly, feature = "benchmark"))]
#[cfg(test)]
mod bench {
extern crate test;

View File

@@ -1,4 +1,4 @@
#![cfg_attr(feature = "benchmark", feature(test))]
#![cfg_attr(all(nightly, feature = "benchmark"), feature(test))]
#![allow(non_camel_case_types)]
pub const BUILD_VERSION: &str = env!("FISH_BUILD_VERSION");