Skip to content

Commit 580e5e2

Browse files
committed
Some comment tests
1 parent 4fa66f1 commit 580e5e2

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

crates/ide_assists/src/handlers/sort_items.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,24 @@ $0enum Bar {
285285
sort_items,
286286
r#"
287287
$0trait Bar {
288-
fn a() {}
288+
fn a() {
289+
290+
}
291+
292+
// comment for c
289293
fn c() {}
290294
fn z() {}
291295
fn b() {}
292296
}
293297
"#,
294298
r#"
295299
trait Bar {
296-
fn a() {}
300+
fn a() {
301+
302+
}
303+
297304
fn b() {}
305+
// comment for c
298306
fn c() {}
299307
fn z() {}
300308
}
@@ -311,6 +319,9 @@ struct Bar;
311319
$0impl Bar {
312320
fn c() {}
313321
fn a() {}
322+
/// long
323+
/// doc
324+
/// comment
314325
fn z() {}
315326
fn d() {}
316327
}
@@ -321,6 +332,9 @@ impl Bar {
321332
fn a() {}
322333
fn c() {}
323334
fn d() {}
335+
/// long
336+
/// doc
337+
/// comment
324338
fn z() {}
325339
}
326340
"#,

0 commit comments

Comments
 (0)