From 2221fc81249eb91ca5f318ca29fea34d2cf14bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 24 Jul 2019 02:20:36 +0200 Subject: [PATCH 1/2] rustup https://github.com/rust-lang/rust/pull/62859 --- clippy_lints/src/redundant_clone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs index d24a20b079d..e8553861597 100644 --- a/clippy_lints/src/redundant_clone.rs +++ b/clippy_lints/src/redundant_clone.rs @@ -293,7 +293,7 @@ fn base_local_and_movability<'tcx>( let PlaceRef { base: place_base, mut projection, - } = place.as_place_ref(); + } = place.as_ref(); if let PlaceBase::Local(local) = place_base { while let Some(box Projection { base, elem }) = projection { projection = base; From b0373a5f6b6d4aa61c4ef9322a7b34c6b7507934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 24 Jul 2019 02:24:27 +0200 Subject: [PATCH 2/2] update test stderr, not sure which rustc pull request caused this. --- tests/ui/issue-3145.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/issue-3145.stderr b/tests/ui/issue-3145.stderr index f3984f991a4..cb0d95f5e26 100644 --- a/tests/ui/issue-3145.stderr +++ b/tests/ui/issue-3145.stderr @@ -2,7 +2,7 @@ error: expected token: `,` --> $DIR/issue-3145.rs:2:19 | LL | println!("{}" a); //~ERROR expected token: `,` - | ^ + | ^ expected `,` error: aborting due to previous error