From acaa2f071aa072348f389c3e6af311f6a4c2527b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 24 Jun 2017 11:43:57 -0700 Subject: [PATCH] Don't check for references to panics with debug assertions --- ci/run.sh | 3 ++- src/arm.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/run.sh b/ci/run.sh index bda4415..008d9ca 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -125,7 +125,8 @@ case $1 in esac # Verify that we haven't drop any intrinsic/symbol -$cargo build --features "$INTRINSICS_FEATURES" --target $1 --example intrinsics +RUSTFLAGS="-C debug-assertions=no" \ + $cargo build --features "$INTRINSICS_FEATURES" --target $1 --example intrinsics # Verify that there are no undefined symbols to `panic` within our # implementations diff --git a/src/arm.rs b/src/arm.rs index 8d5808c..1e234b7 100644 --- a/src/arm.rs +++ b/src/arm.rs @@ -1,3 +1,4 @@ +#[cfg(not(feature = "gen-tests"))] use core::intrinsics; #[cfg(feature = "mem")]