Skip to content

Commit f2dd75c

Browse files
committed
review comments
1 parent 5598f35 commit f2dd75c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/librustc_typeck/check/_match.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
223223
.span_to_snippet(pat.span)
224224
{
225225
err.help(&format!("did you mean `{}: &{}`?",
226-
snippet,
227-
expected));
228-
err.help(&format!("did you mean `{}: {}`?",
229226
&snippet[1..],
230227
expected));
231228
}

src/test/ui/mismatched_types/issue-38371.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ error[E0308]: mismatched types
66
|
77
= note: expected type `Foo`
88
= note: found type `&_`
9-
= help: did you mean `&foo: &Foo`?
10-
= help: did you mean `foo: Foo`?
9+
= help: did you mean `foo: &Foo`?
1110

1211
error: aborting due to previous error
1312

0 commit comments

Comments
 (0)