From d7796cbf25b6916d41e229895abb342ce9915a4a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 8 Nov 2017 10:40:29 -0800 Subject: [PATCH] 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. --- lib/cretonne/src/ir/extname.rs | 1 + lib/reader/src/lexer.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/cretonne/src/ir/extname.rs b/lib/cretonne/src/ir/extname.rs index 273006b570..ba5ddba40b 100644 --- a/lib/cretonne/src/ir/extname.rs +++ b/lib/cretonne/src/ir/extname.rs @@ -5,6 +5,7 @@ //! Cretonne, which compiles functions independently. use std::fmt::{self, Write}; +#[allow(unused_imports)] use std::ascii::AsciiExt; /// The name of an external can be any sequence of bytes. diff --git a/lib/reader/src/lexer.rs b/lib/reader/src/lexer.rs index 10cd9737af..c8b0ca96ad 100644 --- a/lib/reader/src/lexer.rs +++ b/lib/reader/src/lexer.rs @@ -7,6 +7,7 @@ use std::str::CharIndices; use std::u16; +#[allow(unused_imports)] use std::ascii::AsciiExt; use cretonne::ir::types; use cretonne::ir::{Value, Ebb};