Suppress an unused-import warning on AsciiExt.

See

https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726

for details.
This commit is contained in:
Dan Gohman
2017-11-08 10:40:29 -08:00
parent 2b6502ac6e
commit d7796cbf25
2 changed files with 2 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
//! Cretonne, which compiles functions independently. //! Cretonne, which compiles functions independently.
use std::fmt::{self, Write}; use std::fmt::{self, Write};
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
/// The name of an external can be any sequence of bytes. /// The name of an external can be any sequence of bytes.

View File

@@ -7,6 +7,7 @@
use std::str::CharIndices; use std::str::CharIndices;
use std::u16; use std::u16;
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use cretonne::ir::types; use cretonne::ir::types;
use cretonne::ir::{Value, Ebb}; use cretonne::ir::{Value, Ebb};