Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5d31e29

Browse files
committed
Appease rust-analyzer
For some reason it doesn't figure out the slice coercion.
1 parent b6e4299 commit 5d31e29

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,
@@ -1981,7 +1981,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
19811981
let post_guard_block = self.bind_pattern(
19821982
self.source_info(pat.span),
19831983
guard_candidate,
1984-
&fake_borrow_temps,
1984+
fake_borrow_temps.as_slice(),
19851985
expr_span,
19861986
None,
19871987
false,
@@ -2468,7 +2468,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
24682468
let matching = this.bind_pattern(
24692469
this.source_info(pattern.span),
24702470
candidate,
2471-
&fake_borrow_temps,
2471+
fake_borrow_temps.as_slice(),
24722472
initializer_span,
24732473
None,
24742474
true,
@@ -2477,7 +2477,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
24772477
let failure = this.bind_pattern(
24782478
this.source_info(else_block_span),
24792479
wildcard,
2480-
&fake_borrow_temps,
2480+
fake_borrow_temps.as_slice(),
24812481
initializer_span,
24822482
None,
24832483
true,

0 commit comments

Comments
 (0)