diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-02-12 21:59:17 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-02-28 00:30:22 +0100 |
| commit | 5d31e29b56c9e7c8fad184eae8f5eae351f267d8 (patch) | |
| tree | 48a4c2a4ae51088f91d1f86636183e3e8ed9b780 | |
| parent | b6e4299415646106095a7c3ca71aba9d174ee4ea (diff) | |
| download | rust-5d31e29b56c9e7c8fad184eae8f5eae351f267d8.tar.gz rust-5d31e29b56c9e7c8fad184eae8f5eae351f267d8.zip | |
Appease rust-analyzer
For some reason it doesn't figure out the slice coercion.
| -rw-r--r-- | compiler/rustc_mir_build/src/build/matches/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_mir_build/src/build/matches/mod.rs b/compiler/rustc_mir_build/src/build/matches/mod.rs index 641a278c1d3..f37e8606cac 100644 --- a/compiler/rustc_mir_build/src/build/matches/mod.rs +++ b/compiler/rustc_mir_build/src/build/matches/mod.rs @@ -701,7 +701,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { self.bind_pattern( self.source_info(irrefutable_pat.span), candidate, - &fake_borrow_temps, + fake_borrow_temps.as_slice(), irrefutable_pat.span, None, false, @@ -1981,7 +1981,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { let post_guard_block = self.bind_pattern( self.source_info(pat.span), guard_candidate, - &fake_borrow_temps, + fake_borrow_temps.as_slice(), expr_span, None, false, @@ -2468,7 +2468,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { let matching = this.bind_pattern( this.source_info(pattern.span), candidate, - &fake_borrow_temps, + fake_borrow_temps.as_slice(), initializer_span, None, true, @@ -2477,7 +2477,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { let failure = this.bind_pattern( this.source_info(else_block_span), wildcard, - &fake_borrow_temps, + fake_borrow_temps.as_slice(), initializer_span, None, true, |
