From 78dc48ea501873ca4f9b4ce5b3049ec39703ee49 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 1 Mar 2020 23:32:49 +0900 Subject: [PATCH] Rustup to rust-lang/rust#69579 --- clippy_lints/src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs index d9fb9d444cb..c59799fa1cf 100644 --- a/clippy_lints/src/write.rs +++ b/clippy_lints/src/write.rs @@ -349,7 +349,7 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &TokenStream, is_write: bool) -> (O if let Piece::NextArgument(arg) = piece { if arg.format.ty == "?" { // FIXME: modify rustc's fmt string parser to give us the current span - span_lint(cx, USE_DEBUG, parser.prev_span, "use of `Debug`-based formatting"); + span_lint(cx, USE_DEBUG, parser.prev_token.span, "use of `Debug`-based formatting"); } args.push(arg); }