mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
removed redundant test
This commit is contained in:
parent
269153388a
commit
b290285dd8
1 changed files with 0 additions and 31 deletions
|
@ -4597,37 +4597,6 @@ fn $0fun_name() {
|
||||||
/* a comment */
|
/* a comment */
|
||||||
let x = 0;
|
let x = 0;
|
||||||
}
|
}
|
||||||
"#,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn extract_function_long_form_comment_multiline() {
|
|
||||||
check_assist(
|
|
||||||
extract_function,
|
|
||||||
r#"
|
|
||||||
fn func() {
|
|
||||||
let i = 0;
|
|
||||||
$0/*
|
|
||||||
a
|
|
||||||
comment
|
|
||||||
*/
|
|
||||||
let x = 0;$0
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
r#"
|
|
||||||
fn func() {
|
|
||||||
let i = 0;
|
|
||||||
fun_name();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn $0fun_name() {
|
|
||||||
/*
|
|
||||||
a
|
|
||||||
comment
|
|
||||||
*/
|
|
||||||
let x = 0;
|
|
||||||
}
|
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue