diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-18 14:32:53 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-18 14:32:53 +0000 |
commit | 03c177af89efcc238053b59069eda2c1c6772622 (patch) | |
tree | 399c065e36e79b70258b2f77c2bcff43572d98e2 /crates/ide_db/src/helpers/insert_use | |
parent | f4929fa9ccd0eda65c2b77fef163c31e33bfb89a (diff) | |
parent | 700034bd5a46dd6e3b5aa6322522e42c2a665fe9 (diff) |
Merge #6927
6927: Do not merge imports with different attributes r=lnicola a=Jesse-Bakker
Fixes #6925
Co-authored-by: Jesse Bakker <[email protected]>
Diffstat (limited to 'crates/ide_db/src/helpers/insert_use')
-rw-r--r-- | crates/ide_db/src/helpers/insert_use/tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/ide_db/src/helpers/insert_use/tests.rs b/crates/ide_db/src/helpers/insert_use/tests.rs index 9e194354e..a603fe87f 100644 --- a/crates/ide_db/src/helpers/insert_use/tests.rs +++ b/crates/ide_db/src/helpers/insert_use/tests.rs | |||
@@ -448,6 +448,20 @@ use std::io;", | |||
448 | } | 448 | } |
449 | 449 | ||
450 | #[test] | 450 | #[test] |
451 | fn merge_groups_skip_attributed() { | ||
452 | check_full( | ||
453 | "std::io", | ||
454 | r#" | ||
455 | #[cfg(feature = "gated")] use std::fmt::{Result, Display}; | ||
456 | "#, | ||
457 | r#" | ||
458 | #[cfg(feature = "gated")] use std::fmt::{Result, Display}; | ||
459 | use std::io; | ||
460 | "#, | ||
461 | ) | ||
462 | } | ||
463 | |||
464 | #[test] | ||
451 | #[ignore] // FIXME: Support this | 465 | #[ignore] // FIXME: Support this |
452 | fn split_out_merge() { | 466 | fn split_out_merge() { |
453 | check_last( | 467 | check_last( |