mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Do not merge imports with different attributes
This commit is contained in:
parent
f4929fa9cc
commit
700034bd5a
2 changed files with 28 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue