Skip to content

Commit f709c1b

Browse files
Nadrieriltgross35
authored andcommitted
Appease rust-analyzer
For some reason it doesn't figure out the slice coercion.
1 parent 8ccc1e1 commit f709c1b

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+4
-4
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
701701
self.bind_pattern(
702702
self.source_info(irrefutable_pat.span),
703703
candidate,
704-
&fake_borrow_temps,
704+
fake_borrow_temps.as_slice(),
705705
irrefutable_pat.span,
706706
None,
707707
false,
@@ -1938,7 +1938,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
19381938
let post_guard_block = self.bind_pattern(
19391939
self.source_info(pat.span),
19401940
guard_candidate,
1941-
&fake_borrow_temps,
1941+
fake_borrow_temps.as_slice(),
19421942
expr_span,
19431943
None,
19441944
false,
@@ -2425,7 +2425,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
24252425
let matching = this.bind_pattern(
24262426
this.source_info(pattern.span),
24272427
candidate,
2428-
&fake_borrow_temps,
2428+
fake_borrow_temps.as_slice(),
24292429
initializer_span,
24302430
None,
24312431
true,
@@ -2434,7 +2434,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
24342434
let failure = this.bind_pattern(
24352435
this.source_info(else_block_span),
24362436
wildcard,
2437-
&fake_borrow_temps,
2437+
fake_borrow_temps.as_slice(),
24382438
initializer_span,
24392439
None,
24402440
true,

0 commit comments

Comments
 (0)