Do not merge imports with different attributes

This commit is contained in:
Jesse Bakker 2020-12-18 14:30:56 +01:00
parent f4929fa9cc
commit 700034bd5a
2 changed files with 28 additions and 1 deletions

View file

@ -447,6 +447,20 @@ use std::io;",
)
}
#[test]
fn merge_groups_skip_attributed() {
check_full(
"std::io",
r#"
#[cfg(feature = "gated")] use std::fmt::{Result, Display};
"#,
r#"
#[cfg(feature = "gated")] use std::fmt::{Result, Display};
use std::io;
"#,
)
}
#[test]
#[ignore] // FIXME: Support this
fn split_out_merge() {