Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/prec.rs')
-rw-r--r--crates/syntax/src/ast/prec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/prec.rs b/crates/syntax/src/ast/prec.rs
index a6c04b0650..f473df9b15 100644
--- a/crates/syntax/src/ast/prec.rs
+++ b/crates/syntax/src/ast/prec.rs
@@ -578,7 +578,7 @@ impl Expr {
impl ast::Type {
pub fn needs_parens_in(&self, parent: &SyntaxNode) -> bool {
- if !matches!(self, ast::Type::DynTraitType(_)) {
+ if !matches!(self, ast::Type::DynTraitType(_) | ast::Type::ImplTraitType(_)) {
return false;
}
let kind = parent.kind();