Explorar el Código

Don't check for references to panics with debug assertions

Alex Crichton hace 7 años
padre
commit
acaa2f071a
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 2 1
      ci/run.sh
  2. 1 0
      src/arm.rs

+ 2 - 1
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

+ 1 - 0
src/arm.rs

@@ -1,3 +1,4 @@
+#[cfg(not(feature = "gen-tests"))]
 use core::intrinsics;
 
 #[cfg(feature = "mem")]