Appease rust-analyzer
For some reason it doesn't figure out the slice coercion.
This commit is contained in:
parent
b6e4299415
commit
5d31e29b56
1 changed files with 4 additions and 4 deletions
|
@ -701,7 +701,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
self.bind_pattern(
|
self.bind_pattern(
|
||||||
self.source_info(irrefutable_pat.span),
|
self.source_info(irrefutable_pat.span),
|
||||||
candidate,
|
candidate,
|
||||||
&fake_borrow_temps,
|
fake_borrow_temps.as_slice(),
|
||||||
irrefutable_pat.span,
|
irrefutable_pat.span,
|
||||||
None,
|
None,
|
||||||
false,
|
false,
|
||||||
|
@ -1981,7 +1981,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
let post_guard_block = self.bind_pattern(
|
let post_guard_block = self.bind_pattern(
|
||||||
self.source_info(pat.span),
|
self.source_info(pat.span),
|
||||||
guard_candidate,
|
guard_candidate,
|
||||||
&fake_borrow_temps,
|
fake_borrow_temps.as_slice(),
|
||||||
expr_span,
|
expr_span,
|
||||||
None,
|
None,
|
||||||
false,
|
false,
|
||||||
|
@ -2468,7 +2468,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
let matching = this.bind_pattern(
|
let matching = this.bind_pattern(
|
||||||
this.source_info(pattern.span),
|
this.source_info(pattern.span),
|
||||||
candidate,
|
candidate,
|
||||||
&fake_borrow_temps,
|
fake_borrow_temps.as_slice(),
|
||||||
initializer_span,
|
initializer_span,
|
||||||
None,
|
None,
|
||||||
true,
|
true,
|
||||||
|
@ -2477,7 +2477,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||||
let failure = this.bind_pattern(
|
let failure = this.bind_pattern(
|
||||||
this.source_info(else_block_span),
|
this.source_info(else_block_span),
|
||||||
wildcard,
|
wildcard,
|
||||||
&fake_borrow_temps,
|
fake_borrow_temps.as_slice(),
|
||||||
initializer_span,
|
initializer_span,
|
||||||
None,
|
None,
|
||||||
true,
|
true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue