From 2113c467970ed80155bd4c6d8c5efa7dc0c114d1 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 19 Jun 2021 22:31:24 +0200 Subject: Cleanup insert_use tests --- crates/ide_assists/src/handlers/auto_import.rs | 58 -------------------------- 1 file changed, 58 deletions(-) (limited to 'crates/ide_assists') diff --git a/crates/ide_assists/src/handlers/auto_import.rs b/crates/ide_assists/src/handlers/auto_import.rs index 8df8b060d..accc345fc 100644 --- a/crates/ide_assists/src/handlers/auto_import.rs +++ b/crates/ide_assists/src/handlers/auto_import.rs @@ -992,64 +992,6 @@ mod foo {} const _: () = { Foo }; -"#, - ); - } - - #[test] - fn respects_cfg_attr() { - check_assist( - auto_import, - r#" -mod bar { - pub struct Bar; -} - -#[cfg(test)] -fn foo() { - Bar$0 -} -"#, - r#" -mod bar { - pub struct Bar; -} - -#[cfg(test)] -fn foo() { -use bar::Bar; - - Bar -} -"#, - ); - } - - #[test] - fn respects_cfg_attr2() { - check_assist( - auto_import, - r#" -mod bar { - pub struct Bar; -} - -#[cfg(test)] -const FOO: Bar = { - Bar$0 -} -"#, - r#" -mod bar { - pub struct Bar; -} - -#[cfg(test)] -const FOO: Bar = { -use bar::Bar; - - Bar -} "#, ); } -- cgit v1.2.3