fix nightly and warnings

This commit is contained in:
NikVolf 2019-04-09 19:24:45 +03:00
parent 6e9d2eb8d2
commit a51413563e
13 changed files with 14 additions and 15 deletions

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use core::fmt; use core::fmt;
#[cfg(feature = "std")] #[cfg(feature = "std")]

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::alloc::rc::{Rc, Weak}; use crate::alloc::rc::{Rc, Weak};
use core::fmt; use core::fmt;
use crate::host::Externals; use crate::host::Externals;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]
use hashbrown::HashMap; use hashbrown::HashMap;

View File

@ -68,7 +68,7 @@
//! //!
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
/// Should we keep a value before "discarding" a stack frame? /// Should we keep a value before "discarding" a stack frame?
/// ///

View File

@ -98,6 +98,7 @@
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
//// alloc is required in no_std //// alloc is required in no_std
#![cfg_attr(not(feature = "std"), feature(alloc))] #![cfg_attr(not(feature = "std"), feature(alloc))]
#![cfg_attr(not(feature = "std"), feature(alloc_prelude))]
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]
#[macro_use] #[macro_use]
@ -121,7 +122,7 @@ extern crate memory_units as memory_units_crate;
extern crate parity_wasm; extern crate parity_wasm;
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use core::fmt; use core::fmt;
#[cfg(feature = "std")] #[cfg(feature = "std")]
use std::error; use std::error;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::alloc::rc::Rc; use crate::alloc::rc::Rc;
use core::cell::{Cell, RefCell}; use core::cell::{Cell, RefCell};
use core::cmp; use core::cmp;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::alloc::rc::Rc; use crate::alloc::rc::Rc;
use core::cell::RefCell; use core::cell::RefCell;
use core::fmt; use core::fmt;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX}; use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX};
use core::fmt; use core::fmt;
use core::ops; use core::ops;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::alloc::rc::Rc; use crate::alloc::rc::Rc;
use core::cell::RefCell; use core::cell::RefCell;
use core::fmt; use core::fmt;

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use parity_wasm::elements::{ use parity_wasm::elements::{
BlockType, FunctionType, GlobalType, MemoryType, TableType, ValueType, BlockType, FunctionType, GlobalType, MemoryType, TableType, ValueType,
}; };

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX}; use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX};
use core::u32; use core::u32;
use parity_wasm::elements::{BlockType, Func, FuncBody, Instruction, TableElementType, ValueType}; use parity_wasm::elements::{BlockType, Func, FuncBody, Instruction, TableElementType, ValueType};

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use core::fmt; use core::fmt;
#[cfg(feature = "std")] #[cfg(feature = "std")]
use std::error; use std::error;
@ -150,8 +150,6 @@ pub fn deny_floating_point(module: &Module) -> Result<(), Error> {
} }
if let (Some(sec), Some(types)) = (module.function_section(), module.type_section()) { if let (Some(sec), Some(types)) = (module.function_section(), module.type_section()) {
use parity_wasm::elements::{Type, ValueType};
let types = types.types(); let types = types.types();
for sig in sec.entries() { for sig in sec.entries() {

View File

@ -1,5 +1,5 @@
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::alloc::prelude::*; use crate::alloc::prelude::v1::*;
use parity_wasm::elements::{Local, ValueType}; use parity_wasm::elements::{Local, ValueType};
use crate::validation::Error; use crate::validation::Error;