From 72dcfe6cc624c978cdf796ff27406bf468395edb Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 14 Apr 2022 13:02:20 +0200 Subject: [PATCH] reenable test --- .../src/handlers/expand_glob_import.rs | 51 +++++++++---------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/crates/ide_assists/src/handlers/expand_glob_import.rs b/crates/ide_assists/src/handlers/expand_glob_import.rs index 4de4def2e86..ba5a47f4df8 100644 --- a/crates/ide_assists/src/handlers/expand_glob_import.rs +++ b/crates/ide_assists/src/handlers/expand_glob_import.rs @@ -723,37 +723,34 @@ fn qux(bar: Bar, baz: Baz) { #[test] fn expanding_glob_import_with_macro_defs() { - // FIXME: this is currently fails because `Definition::find_usages` ignores macros - // https://github.com/rust-analyzer/rust-analyzer/issues/3484 - // - // check_assist( - // expand_glob_import, - // r" - // //- /lib.rs crate:foo - // #[macro_export] - // macro_rules! bar { - // () => () - // } + check_assist( + expand_glob_import, + r#" +//- /lib.rs crate:foo +#[macro_export] +macro_rules! bar { + () => () +} - // pub fn baz() {} +pub fn baz() {} - // //- /main.rs crate:main deps:foo - // use foo::*$0; +//- /main.rs crate:main deps:foo +use foo::*$0; - // fn main() { - // bar!(); - // baz(); - // } - // ", - // r" - // use foo::{bar, baz}; +fn main() { + bar!(); + baz(); +} +"#, + r#" +use foo::{bar, baz}; - // fn main() { - // bar!(); - // baz(); - // } - // ", - // ) +fn main() { + bar!(); + baz(); +} +"#, + ); } #[test]