From 86ae73177dd05a4e283d138161710cfc0bf0fab1 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 24 Sep 2019 10:59:03 -0700 Subject: [PATCH 1/2] ci: don't publish master docs We just needed this before we were publishing walrus to crates.io. Now that we are doing that, we don't need to do master branch docs anymore. --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1eb26896..090b9430 100644 --- a/.travis.yml +++ b/.travis.yml @@ -95,18 +95,6 @@ matrix: script: - cargo check --benches - - name: "master doc to gh-pages" - rust: nightly - install: true - script: - - cargo doc --no-deps - deploy: - provider: script - script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd target/doc && ../../rust_out) - skip_cleanup: true - on: - branch: master - script: - cargo build --all - cargo test --all From d0150655b67d9c2f02376ab3eb1a88ea90a84cf7 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 24 Sep 2019 11:02:06 -0700 Subject: [PATCH 2/2] fuzz: run the GC pass when fuzzing When we round-trip a module through walrus, also run our GC pass on it. This will help us catch bugs where the GC pass removes something that is actually in use. --- crates/fuzz-utils/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fuzz-utils/src/lib.rs b/crates/fuzz-utils/src/lib.rs index e363e8d4..35b1bc03 100755 --- a/crates/fuzz-utils/src/lib.rs +++ b/crates/fuzz-utils/src/lib.rs @@ -105,8 +105,9 @@ where } fn round_trip_through_walrus(&self, wasm: &[u8]) -> Result> { - let module = + let mut module = walrus::Module::from_buffer(&wasm).context("walrus failed to parse the wasm buffer")?; + walrus::passes::gc::run(&mut module); let buf = module.emit_wasm(); Ok(buf) }