From c9681905baf3613dbc17308cc171a0b60788ae5d Mon Sep 17 00:00:00 2001 From: laurent Date: Mon, 6 Nov 2017 23:26:44 +0000 Subject: [PATCH] Fix broken tests. --- clippy_lints/src/strings.rs | 1 - tests/ui/unicode.stderr | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/strings.rs b/clippy_lints/src/strings.rs index 17514d9d6..b7c671c0c 100644 --- a/clippy_lints/src/strings.rs +++ b/clippy_lints/src/strings.rs @@ -144,7 +144,6 @@ impl LintPass for StringLitAsBytes { impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringLitAsBytes { fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) { - use std::ascii::AsciiExt; use syntax::ast::LitKind; use utils::{in_macro, snippet}; diff --git a/tests/ui/unicode.stderr b/tests/ui/unicode.stderr index 73599235e..870a12ee4 100644 --- a/tests/ui/unicode.stderr +++ b/tests/ui/unicode.stderr @@ -2,7 +2,7 @@ error: zero-width space detected --> $DIR/unicode.rs:6:12 | 6 | print!("Here >​< is a ZWS, and ​another"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D zero-width-space` implied by `-D warnings` = help: Consider replacing the string with: @@ -12,7 +12,7 @@ error: non-nfc unicode sequence detected --> $DIR/unicode.rs:12:12 | 12 | print!("̀àh?"); - | ^^^^^^^ + | ^^^^^ | = note: `-D unicode-not-nfc` implied by `-D warnings` = help: Consider replacing the string with: