aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_assists/src/handlers')
-rw-r--r--crates/ide_assists/src/handlers/fix_visibility.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/crates/ide_assists/src/handlers/fix_visibility.rs b/crates/ide_assists/src/handlers/fix_visibility.rs
index 9b432e92f..2f2b605fc 100644
--- a/crates/ide_assists/src/handlers/fix_visibility.rs
+++ b/crates/ide_assists/src/handlers/fix_visibility.rs
@@ -583,25 +583,25 @@ pub struct Foo { pub(crate) bar: () }
583 } 583 }
584 584
585 #[test] 585 #[test]
586 #[ignore]
587 // FIXME handle reexports properly
588 fn fix_visibility_of_reexport() { 586 fn fix_visibility_of_reexport() {
587 // FIXME: broken test, this should fix visibility of the re-export
588 // rather than the struct.
589 check_assist( 589 check_assist(
590 fix_visibility, 590 fix_visibility,
591 r" 591 r#"
592 mod foo { 592mod foo {
593 use bar::Baz; 593 use bar::Baz;
594 mod bar { pub(super) struct Baz; } 594 mod bar { pub(super) struct Baz; }
595 } 595}
596 foo::Baz$0 596foo::Baz$0
597 ", 597"#,
598 r" 598 r#"
599 mod foo { 599mod foo {
600 $0pub(crate) use bar::Baz; 600 use bar::Baz;
601 mod bar { pub(super) struct Baz; } 601 mod bar { $0pub(crate) struct Baz; }
602 } 602}
603 foo::Baz 603foo::Baz
604 ", 604"#,
605 ) 605 )
606 } 606 }
607} 607}