瀏覽代碼

Make warnings fatal in Rust test

Fabian 5 年之前
父節點
當前提交
27a374e4fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -269,7 +269,7 @@ devices-test: all-debug
 	./tests/devices/virtio_9p.js
 
 rust-test: $(RUST_FILES)
-	env RUST_BACKTRACE=full RUST_TEST_THREADS=1 cargo +nightly test -- --nocapture
+	env RUST_BACKTRACE=full RUST_TEST_THREADS=1 RUSTFLAGS="-D warnings" cargo +nightly test -- --nocapture
 	./tests/rust/verify-wasmgen-dummy-output.js
 
 api-tests: all-debug