File tree Expand file tree Collapse file tree 1 file changed +28
-31
lines changed
crates/ide_assists/src/handlers Expand file tree Collapse file tree 1 file changed +28
-31
lines changed Original file line number Diff line number Diff line change @@ -723,37 +723,34 @@ fn qux(bar: Bar, baz: Baz) {
723
723
724
724
#[ test]
725
725
fn expanding_glob_import_with_macro_defs ( ) {
726
- // FIXME: this is currently fails because `Definition::find_usages` ignores macros
727
- // https://github.com/rust-analyzer/rust-analyzer/issues/3484
728
- //
729
- // check_assist(
730
- // expand_glob_import,
731
- // r"
732
- // //- /lib.rs crate:foo
733
- // #[macro_export]
734
- // macro_rules! bar {
735
- // () => ()
736
- // }
737
-
738
- // pub fn baz() {}
739
-
740
- // //- /main.rs crate:main deps:foo
741
- // use foo::*$0;
742
-
743
- // fn main() {
744
- // bar!();
745
- // baz();
746
- // }
747
- // ",
748
- // r"
749
- // use foo::{bar, baz};
750
-
751
- // fn main() {
752
- // bar!();
753
- // baz();
754
- // }
755
- // ",
756
- // )
726
+ check_assist (
727
+ expand_glob_import,
728
+ r#"
729
+ //- /lib.rs crate:foo
730
+ #[macro_export]
731
+ macro_rules! bar {
732
+ () => ()
733
+ }
734
+
735
+ pub fn baz() {}
736
+
737
+ //- /main.rs crate:main deps:foo
738
+ use foo::*$0;
739
+
740
+ fn main() {
741
+ bar!();
742
+ baz();
743
+ }
744
+ "# ,
745
+ r#"
746
+ use foo::{bar, baz};
747
+
748
+ fn main() {
749
+ bar!();
750
+ baz();
751
+ }
752
+ "# ,
753
+ ) ;
757
754
}
758
755
759
756
#[ test]
You can’t perform that action at this time.
0 commit comments