mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
squash.
This commit is contained in:
parent
1b283db47f
commit
3725ab3146
43 changed files with 233 additions and 11 deletions
|
|
@ -1222,6 +1222,26 @@ use self::foo::{self, Bar, Foo};
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn insert_with_double_colon_prefixed_import_merge() {
|
||||
check_with_config(
|
||||
"use ::ext::foo::Foo",
|
||||
r#"
|
||||
use ::ext::foo::Foo as _;
|
||||
"#,
|
||||
r#"
|
||||
use ::ext::foo::Foo;
|
||||
"#,
|
||||
&InsertUseConfig {
|
||||
granularity: ImportGranularity::Crate,
|
||||
prefix_kind: hir::PrefixKind::BySelf,
|
||||
enforce_granularity: true,
|
||||
group: true,
|
||||
skip_glob_imports: true,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
fn check_with_config(
|
||||
path: &str,
|
||||
ra_fixture_before: &str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue