Rustup
This commit is contained in:
@@ -144,7 +144,6 @@ impl LintPass for StringLitAsBytes {
|
|||||||
|
|
||||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringLitAsBytes {
|
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringLitAsBytes {
|
||||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
|
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
|
||||||
use std::ascii::AsciiExt;
|
|
||||||
use syntax::ast::LitKind;
|
use syntax::ast::LitKind;
|
||||||
use utils::{in_macro, snippet};
|
use utils::{in_macro, snippet};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ error: zero-width space detected
|
|||||||
--> $DIR/unicode.rs:6:12
|
--> $DIR/unicode.rs:6:12
|
||||||
|
|
|
|
||||||
6 | print!("Here >< is a ZWS, and another");
|
6 | print!("Here >< is a ZWS, and another");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: `-D zero-width-space` implied by `-D warnings`
|
= note: `-D zero-width-space` implied by `-D warnings`
|
||||||
= help: Consider replacing the string with:
|
= help: Consider replacing the string with:
|
||||||
@@ -12,7 +12,7 @@ error: non-nfc unicode sequence detected
|
|||||||
--> $DIR/unicode.rs:12:12
|
--> $DIR/unicode.rs:12:12
|
||||||
|
|
|
|
||||||
12 | print!("̀àh?");
|
12 | print!("̀àh?");
|
||||||
| ^^^^^^^
|
| ^^^^^
|
||||||
|
|
|
|
||||||
= note: `-D unicode-not-nfc` implied by `-D warnings`
|
= note: `-D unicode-not-nfc` implied by `-D warnings`
|
||||||
= help: Consider replacing the string with:
|
= help: Consider replacing the string with:
|
||||||
|
|||||||
Reference in New Issue
Block a user