mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-31 23:38:45 +00:00
Fix test
This commit is contained in:
parent
a695e900f6
commit
68eabf1bf1
1 changed files with 3 additions and 1 deletions
|
@ -95,6 +95,7 @@ pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>)
|
||||||
inline_refs_for_file(file_id, refs);
|
inline_refs_for_file(file_id, refs);
|
||||||
}
|
}
|
||||||
if !definition_deleted {
|
if !definition_deleted {
|
||||||
|
builder.edit_file(ctx.file_id());
|
||||||
builder.delete(ast_alias.syntax().text_range());
|
builder.delete(ast_alias.syntax().text_range());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -979,7 +980,7 @@ fn f() -> Vec<&str> {
|
||||||
}
|
}
|
||||||
|
|
||||||
//- /foo.rs
|
//- /foo.rs
|
||||||
use super::T;
|
|
||||||
fn foo() {
|
fn foo() {
|
||||||
let _: Vec<i8> = Vec::new();
|
let _: Vec<i8> = Vec::new();
|
||||||
}
|
}
|
||||||
|
@ -1008,6 +1009,7 @@ mod foo;
|
||||||
|
|
||||||
|
|
||||||
//- /foo.rs
|
//- /foo.rs
|
||||||
|
|
||||||
fn foo() {
|
fn foo() {
|
||||||
let _: i32 = 0;
|
let _: i32 = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue