Skip to content

Commit 72dcfe6

Browse files
author
Jonas Schievink
committed
reenable test
1 parent f5403ae commit 72dcfe6

File tree

1 file changed

+28
-31
lines changed

1 file changed

+28
-31
lines changed

crates/ide_assists/src/handlers/expand_glob_import.rs

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -723,37 +723,34 @@ fn qux(bar: Bar, baz: Baz) {
723723

724724
#[test]
725725
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+
);
757754
}
758755

759756
#[test]

0 commit comments

Comments
 (0)