Skip to content

Commit 33ccd76

Browse files
committed
Remove trailing whitespace
1 parent dc2977e commit 33ccd76

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_typeck/src/check/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
668668
// so we don't suggest moving something to the type that does not exist
669669
hir::Node::Param(hir::Param { ty_span, .. }) if binding.span != *ty_span => {
670670
err.multipart_suggestion_verbose(
671-
format!("to take parameter `{binding}` by reference, move `&{mutability}` to the type"),
671+
format!("to take parameter `{binding}` by reference, move `&{mutability}` to the type"),
672672
vec![
673673
(pat.span.until(inner.span), "".to_owned()),
674674
(ty_span.shrink_to_lo(), format!("&{}", mutbl.prefix_str())),

src/test/ui/mismatched_types/ref-pat-suggestions.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313
let _: fn(&u32) = |&_a| (); //~ ERROR mismatched types
1414
let _: fn(&mut u32) = |&mut _a| (); //~ ERROR mismatched types
1515
let _: fn(&u32) = |&_a| (); //~ ERROR mismatched types
16-
let _: fn(&mut u32) = |&mut _a| (); //~ ERROR mismatched types
16+
let _: fn(&mut u32) = |&mut _a| (); //~ ERROR mismatched types
1717

1818
let _ = |_a: &u32| (); //~ ERROR mismatched types
1919
let _ = |_a: &mut u32| (); //~ ERROR mismatched types

src/test/ui/mismatched_types/ref-pat-suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313
let _: fn(&u32) = |&&_a| (); //~ ERROR mismatched types
1414
let _: fn(&mut u32) = |&mut &_a| (); //~ ERROR mismatched types
1515
let _: fn(&u32) = |&&mut _a| (); //~ ERROR mismatched types
16-
let _: fn(&mut u32) = |&mut &mut _a| (); //~ ERROR mismatched types
16+
let _: fn(&mut u32) = |&mut &mut _a| (); //~ ERROR mismatched types
1717

1818
let _ = |&_a: u32| (); //~ ERROR mismatched types
1919
let _ = |&mut _a: u32| (); //~ ERROR mismatched types

0 commit comments

Comments
 (0)