diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-31 17:29:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 17:29:54 +0200 |
| commit | 1f86789bb3a67c21b88c0f4050d4794de2a128ba (patch) | |
| tree | 03bc7ae2cecaf9ed436211148558a25498399cd8 /compiler/rustc_mir_build | |
| parent | eb0e8c3418fd4f89743b5b12c84e4f683748ea1a (diff) | |
| parent | 89c66eb42d385975c91d79de139b50c298414d71 (diff) | |
| download | rust-1f86789bb3a67c21b88c0f4050d4794de2a128ba.tar.gz rust-1f86789bb3a67c21b88c0f4050d4794de2a128ba.zip | |
Rollup merge of #95517 - lcnr:rustc_borrowck-misc, r=jackh726
small rustc_borrowck cleanup r? `@jackh726` because of the second commit, seems like that comment was missed in #91243
Diffstat (limited to 'compiler/rustc_mir_build')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/pattern/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/pattern/mod.rs b/compiler/rustc_mir_build/src/thir/pattern/mod.rs index 57aec867856..72b597bb13d 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/mod.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/mod.rs @@ -198,7 +198,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> { let kind = match pat.kind { hir::PatKind::Wild => PatKind::Wild, - hir::PatKind::Lit(ref value) => self.lower_lit(value), + hir::PatKind::Lit(value) => self.lower_lit(value), hir::PatKind::Range(ref lo_expr, ref hi_expr, end) => { let (lo_expr, hi_expr) = (lo_expr.as_deref(), hi_expr.as_deref()); |
