From 0145533ea2c4dd702d9d9d5feea5b6196f98eef1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 13 Nov 2019 07:26:27 -0800 Subject: [PATCH] Squash improper_ctypes warnings on nightly Lots more warnings are showing up on nightly compilers due to a recent change. I've opened rust-lang/rust#66373 on the compiler side for this as well. --- crates/api/src/lib.rs | 1 + crates/runtime/src/lib.rs | 1 + crates/wasi/src/lib.rs | 2 ++ crates/wast/src/spectest.rs | 2 ++ 4 files changed, 6 insertions(+) diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index 065b8c7bae09..54039179b643 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -1,5 +1,6 @@ //! Wasmtime embed API. Based on wasm-c-api. +#![allow(improper_ctypes)] #![cfg_attr(not(feature = "std"), no_std)] mod callable; diff --git a/crates/runtime/src/lib.rs b/crates/runtime/src/lib.rs index c7b597b438a8..12e79a7153b7 100644 --- a/crates/runtime/src/lib.rs +++ b/crates/runtime/src/lib.rs @@ -1,5 +1,6 @@ //! Runtime library support for Wasmtime. +#![allow(improper_ctypes)] #![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)] #![warn(unused_import_braces)] #![cfg_attr(feature = "std", deny(unstable_features))] diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index 8a2d14162510..7ef37df6b7d0 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -1,3 +1,5 @@ +#![allow(improper_ctypes)] + extern crate alloc; mod instantiate; diff --git a/crates/wast/src/spectest.rs b/crates/wast/src/spectest.rs index 63c4f38878ca..e1e3d9a1bd70 100644 --- a/crates/wast/src/spectest.rs +++ b/crates/wast/src/spectest.rs @@ -1,3 +1,5 @@ +#![allow(improper_ctypes)] + use alloc::rc::Rc; use core::cell::RefCell; use cranelift_codegen::ir::types;