about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/build.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-02 19:29:35 +0200
committerGitHub <noreply@github.com>2025-07-02 19:29:35 +0200
commit6ebf642a0423ee33c2334d89e93335c1c7e83e7f (patch)
tree08f748dbc83a692dc1332aa9d266efb1c34dc616 /compiler/rustc_expand/src/build.rs
parentd50240b471f038dcbf4312b6a4b429747b8a868f (diff)
parent7d6764a45bd05913e7f34a8fbba12bf384b0269a (diff)
downloadrust-6ebf642a0423ee33c2334d89e93335c1c7e83e7f.tar.gz
rust-6ebf642a0423ee33c2334d89e93335c1c7e83e7f.zip
Rollup merge of #142237 - benschulz:unused-parens-fn, r=fee1-dead
Detect more cases of unused_parens around types

With this change, more unused parentheses around bounds and types nested within bounds are detected.
Diffstat (limited to 'compiler/rustc_expand/src/build.rs')
-rw-r--r--compiler/rustc_expand/src/build.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/build.rs b/compiler/rustc_expand/src/build.rs
index 14b8cc90d97..a333f2c7cb7 100644
--- a/compiler/rustc_expand/src/build.rs
+++ b/compiler/rustc_expand/src/build.rs
@@ -195,6 +195,7 @@ impl<'a> ExtCtxt<'a> {
             },
             trait_ref: self.trait_ref(path),
             span,
+            parens: ast::Parens::No,
         }
     }