mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 22:54:00 +00:00
remove unneeded test
This commit is contained in:
parent
bce3b63700
commit
cc4f9db086
1 changed files with 2 additions and 121 deletions
|
@ -460,7 +460,7 @@ fn caller$0() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_trait_method_call_hierarchy_on_def() {
|
fn test_trait_method_call_hierarchy() {
|
||||||
check_hierarchy(
|
check_hierarchy(
|
||||||
r#"
|
r#"
|
||||||
trait T1 {
|
trait T1 {
|
||||||
|
@ -483,123 +483,4 @@ fn caller() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_trait_method_call_hierarchy_on_impl() {
|
|
||||||
check_hierarchy(
|
|
||||||
r#"
|
|
||||||
trait T1 {
|
|
||||||
fn callee();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S1;
|
|
||||||
|
|
||||||
impl T1 for S1 {
|
|
||||||
fn call$0ee() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn caller() {
|
|
||||||
S1::callee();
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
expect![["callee Function FileId(0) 64..78 67..73"]],
|
|
||||||
expect![["caller Function FileId(0) 82..115 85..91 : [104..110]"]],
|
|
||||||
expect![[]],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_trait_method_call_hierarchy_on_ref() {
|
|
||||||
check_hierarchy(
|
|
||||||
r#"
|
|
||||||
trait T1 {
|
|
||||||
fn callee();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S1;
|
|
||||||
|
|
||||||
impl T1 for S1 {
|
|
||||||
fn callee() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn caller() {
|
|
||||||
S1::call$0ee();
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
expect![["callee Function FileId(0) 64..78 67..73"]],
|
|
||||||
expect![["caller Function FileId(0) 82..115 85..91 : [104..110]"]],
|
|
||||||
expect![[]],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_trait_method_generic_call_hierarchy_on_def() {
|
|
||||||
check_hierarchy(
|
|
||||||
r#"
|
|
||||||
trait T1 {
|
|
||||||
fn call$0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S1;
|
|
||||||
|
|
||||||
impl T1 for S1 {
|
|
||||||
fn callee() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn caller<T: T1>() {
|
|
||||||
T::callee();
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
expect![["callee Function FileId(0) 15..27 18..24"]],
|
|
||||||
expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]],
|
|
||||||
expect![[]],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_trait_method_generic_call_hierarchy_on_impl() {
|
|
||||||
check_hierarchy(
|
|
||||||
r#"
|
|
||||||
trait T1 {
|
|
||||||
fn callee();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S1;
|
|
||||||
|
|
||||||
impl T1 for S1 {
|
|
||||||
fn call$0ee() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn caller<T: T1>() {
|
|
||||||
T::callee();
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
expect![["callee Function FileId(0) 64..78 67..73"]],
|
|
||||||
expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]],
|
|
||||||
expect![[]],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_trait_method_generic_call_hierarchy_on_ref() {
|
|
||||||
check_hierarchy(
|
|
||||||
r#"
|
|
||||||
trait T1 {
|
|
||||||
fn callee();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S1;
|
|
||||||
|
|
||||||
impl T1 for S1 {
|
|
||||||
fn callee() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn caller<T: T1>() {
|
|
||||||
T::call$0ee();
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
expect![["callee Function FileId(0) 15..27 18..24"]],
|
|
||||||
expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]],
|
|
||||||
expect![[]],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue