Commit d556b6e
committed
Fix issue with &&mut T
```
error[E0596]: cannot borrow `*self.infcx` as mutable, as it is behind a `&` reference
--> compiler/rustc_infer/src/infer/canonical/query_response.rs:642:9
|
641 | fn infcx(&self) -> &mut InferCtxt<'cx, 'tcx> {
| ----- help: consider changing this to be a mutable reference: `&mut self`
642 | self.infcx
| ^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
```1 parent b8eace2 commit d556b6e
File tree
2 files changed
+2
-2
lines changed- compiler/rustc_infer/src/infer
- canonical
- nll_relate
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
| 641 | + | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments