We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89e417 commit ba8c981Copy full SHA for ba8c981
crates/hir/src/display.rs
@@ -185,8 +185,8 @@ impl HirDisplay for Struct {
185
write_where_clause(def_id, f)?;
186
}
187
StructKind::Record => {
188
+ let has_where_clause = write_where_clause(def_id, f)?;
189
if let Some(limit) = f.entity_limit {
- let has_where_clause = write_where_clause(def_id, f)?;
190
let fields = self.fields(f.db);
191
let count = fields.len().min(limit);
192
f.write_char(if !has_where_clause { ' ' } else { '\n' })?;
crates/ide/src/hover/tests.rs
@@ -872,6 +872,8 @@ struct Foo$0 where u32: Copy { field: u32 }
872
```rust
873
// size = 4, align = 4
874
struct Foo
875
+ where
876
+ u32: Copy,
877
```
878
"#]],
879
);
0 commit comments