Ensure inherited reference is never set to &mut
behind an &
This commit is contained in:
parent
b6c409723b
commit
e3945bd3a8
6 changed files with 124 additions and 67 deletions
|
@ -69,7 +69,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
|
|||
hir::PatKind::Ref(inner, _)
|
||||
if self.typeck_results.skipped_ref_pats().contains(pat.hir_id) =>
|
||||
{
|
||||
self.lower_pattern_unadjusted(inner)
|
||||
self.lower_pattern(inner)
|
||||
}
|
||||
_ => self.lower_pattern_unadjusted(pat),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue