From f4fe438baec2fb0a3ef1871846c46bd1dbd04975 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 30 Apr 2018 08:09:31 -0700 Subject: [PATCH] Suppress a warning about AsciiExt being deprecated. We currently support versions of Rust which need this import, so suppress the warning on versions of Rust which deprecated it. --- lib/reader/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reader/src/lexer.rs b/lib/reader/src/lexer.rs index bad7a6369d..f6d89881fb 100644 --- a/lib/reader/src/lexer.rs +++ b/lib/reader/src/lexer.rs @@ -3,7 +3,7 @@ use cretonne_codegen::ir::types; use cretonne_codegen::ir::{Ebb, Value}; use error::Location; -#[allow(unused_imports)] +#[allow(unused_imports, deprecated)] use std::ascii::AsciiExt; use std::str::CharIndices; use std::u16;