aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/hir/src/display.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/hir/src/display.rs b/crates/hir/src/display.rs
index 0640712de..e3660442c 100644
--- a/crates/hir/src/display.rs
+++ b/crates/hir/src/display.rs
@@ -233,7 +233,13 @@ impl HirDisplay for ConstParam {
233 233
234fn write_generic_params(def: GenericDefId, f: &mut HirFormatter) -> Result<(), HirDisplayError> { 234fn write_generic_params(def: GenericDefId, f: &mut HirFormatter) -> Result<(), HirDisplayError> {
235 let params = f.db.generic_params(def); 235 let params = f.db.generic_params(def);
236 if params.lifetimes.is_empty() && params.types.is_empty() && params.consts.is_empty() { 236 if params.lifetimes.is_empty()
237 && params.consts.is_empty()
238 && params
239 .types
240 .iter()
241 .all(|(_, param)| !matches!(param.provenance, TypeParamProvenance::TypeParamList))
242 {
237 return Ok(()); 243 return Ok(());
238 } 244 }
239 write!(f, "<")?; 245 write!(f, "<")?;