about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering
diff options
context:
space:
mode:
authorBenjamin Schulz <benjamin.schulz@sap.com>2025-06-04 19:03:18 +0200
committerBen Schulz <benshu@benshu.de>2025-07-01 08:56:20 +0200
commit7d6764a45bd05913e7f34a8fbba12bf384b0269a (patch)
treea8cded24fae860122e99287b103464e88bf440ef /compiler/rustc_ast_lowering
parente61dd437f33b5a640e67dc3628397689c664c17f (diff)
downloadrust-7d6764a45bd05913e7f34a8fbba12bf384b0269a.tar.gz
rust-7d6764a45bd05913e7f34a8fbba12bf384b0269a.zip
Detect more cases of unused_parens around types
Diffstat (limited to 'compiler/rustc_ast_lowering')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index 26d7c0cd6d3..d14e27982ef 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -1209,6 +1209,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
                         modifiers: TraitBoundModifiers::NONE,
                         trait_ref: TraitRef { path: path.clone(), ref_id: t.id },
                         span: t.span,
+                        parens: ast::Parens::No,
                     },
                     itctx,
                 );