Fix wasm benches on nightly (#93)
This commit is contained in:
parent
724a32ad60
commit
f305b3cd1f
|
@ -22,7 +22,7 @@ install:
|
||||||
- command -v cargo-deadlinks &> /dev/null || cargo install cargo-deadlinks
|
- command -v cargo-deadlinks &> /dev/null || cargo install cargo-deadlinks
|
||||||
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup target add wasm32-unknown-unknown; fi
|
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup target add wasm32-unknown-unknown; fi
|
||||||
script:
|
script:
|
||||||
# Make sure fuzz targets are not broken.
|
# Make sure nightly targets are not broken.
|
||||||
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi
|
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi
|
||||||
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi
|
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi
|
||||||
- ./test.sh
|
- ./test.sh
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![feature(lang_items)]
|
#![feature(lang_items)]
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
|
#![feature(panic_implementation)]
|
||||||
|
|
||||||
extern crate rlibc;
|
extern crate rlibc;
|
||||||
extern crate tiny_keccak;
|
extern crate tiny_keccak;
|
||||||
|
@ -8,13 +9,8 @@ extern crate tiny_keccak;
|
||||||
use tiny_keccak::Keccak;
|
use tiny_keccak::Keccak;
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[lang = "panic_fmt"]
|
#[panic_implementation]
|
||||||
pub extern "C" fn panic_fmt(
|
pub fn panic_fmt(_info: &::core::panic::PanicInfo) -> ! {
|
||||||
_args: ::core::fmt::Arguments,
|
|
||||||
_file: &'static str,
|
|
||||||
_line: u32,
|
|
||||||
_col: u32,
|
|
||||||
) -> ! {
|
|
||||||
use core::intrinsics;
|
use core::intrinsics;
|
||||||
unsafe {
|
unsafe {
|
||||||
intrinsics::abort();
|
intrinsics::abort();
|
||||||
|
|
Loading…
Reference in New Issue