diff --git a/crates/smlib/src/route.rs b/crates/smlib/src/route.rs index 6477afd1d..748af6a3a 100644 --- a/crates/smlib/src/route.rs +++ b/crates/smlib/src/route.rs @@ -195,6 +195,7 @@ pub(crate) fn take_reached() -> (u64, u64) { /// guard fails a test that never touched a C++ body, so a parity test can't quietly compare /// solidcore with itself. #[cfg(test)] +#[cfg_attr(not(feature = "native"), allow(dead_code))] pub(crate) fn on_cpp() -> impl Drop { struct Guard; impl Drop for Guard { diff --git a/crates/smlib/tests/ssi_corpus.rs b/crates/smlib/tests/ssi_corpus.rs index 36fcd0996..8cf72437f 100644 --- a/crates/smlib/tests/ssi_corpus.rs +++ b/crates/smlib/tests/ssi_corpus.rs @@ -367,7 +367,6 @@ fn parity_with_python_scorer() { /// The cases SMLib's GlobalSurfaceIntersect passes at approximation tolerance 1e-6, as score.py /// grades the corpus runner's output. A fix that makes another case pass adds it here. -#[cfg(feature = "native")] const GSI_1E6_PASS: &[&str] = &[ "c1_cone_plane_ellipse", "c1_cone_plane_hyperbola", @@ -678,7 +677,6 @@ const SOLIDCORE_GSI_1E6_MISSES: [&str; 6] = [ ]; /// solidcore passes what the C++ kernel passes, but for [`SOLIDCORE_GSI_1E6_MISSES`]. -#[cfg(feature = "native")] #[test] fn solidcore_global_intersect_at_1e_6() { let Some(scores) = global_intersect_scores(solidcraft_smlib::route::Backend::Solidcore) else { return };