Skip to content

Commit f8e04ff

Browse files
committed
Auto merge of rust-lang#4297 - matthiaskrgr:rustup_12, r=matthiaskrgr
rustup changelog: none
2 parents d71e9c4 + b0373a5 commit f8e04ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/redundant_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn base_local_and_movability<'tcx>(
293293
let PlaceRef {
294294
base: place_base,
295295
mut projection,
296-
} = place.as_place_ref();
296+
} = place.as_ref();
297297
if let PlaceBase::Local(local) = place_base {
298298
while let Some(box Projection { base, elem }) = projection {
299299
projection = base;

tests/ui/issue-3145.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: expected token: `,`
22
--> $DIR/issue-3145.rs:2:19
33
|
44
LL | println!("{}" a); //~ERROR expected token: `,`
5-
| ^
5+
| ^ expected `,`
66

77
error: aborting due to previous error
88

0 commit comments

Comments
 (0)