diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-04 22:25:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-04 22:25:02 +0200 |
| commit | 6b938c8491bc8d16a9a1a4d080368485f4454d31 (patch) | |
| tree | 3b64e51f9b87427d80439f52038e85cecaf74fce /compiler/rustc_borrowck | |
| parent | d3aa757ff8244f83a7dfe4995fe5d2da78399252 (diff) | |
| parent | 8dd44f1af4ac49331d0998eebae21d54b0ab5bde (diff) | |
| download | rust-6b938c8491bc8d16a9a1a4d080368485f4454d31.tar.gz rust-6b938c8491bc8d16a9a1a4d080368485f4454d31.zip | |
Rollup merge of #100093 - wcampbell0x2a:unused-parens-for-match-arms, r=petrochenkov
Enable unused_parens for match arms Fixes: https://github.com/rust-lang/rust/issues/92751 Currently I can't get the `stderr` to work with `./x.py test`, but this should fix the issue. Help would be appreciated!
Diffstat (limited to 'compiler/rustc_borrowck')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs index f68358ecfe6..a87e8bd5ba1 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs @@ -839,7 +839,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> { hir::Node::Expr(hir::Expr { kind: hir::ExprKind::Closure(&hir::Closure { fn_decl_span, .. }), .. - }) => (tcx.sess.source_map().end_point(fn_decl_span)), + }) => tcx.sess.source_map().end_point(fn_decl_span), _ => self.body.span, }; |
