mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Remove now-broken incremental test
The ItemTree tracks impl and trait items, so the CrateDefMap now needs recomputing when those change
This commit is contained in:
parent
0e2602f75e
commit
f9e5ba7d40
1 changed files with 0 additions and 38 deletions
|
@ -57,44 +57,6 @@ fn typing_inside_a_function_should_not_invalidate_def_map() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn adding_inner_items_should_not_invalidate_def_map() {
|
|
||||||
check_def_map_is_not_recomputed(
|
|
||||||
r"
|
|
||||||
//- /lib.rs
|
|
||||||
struct S { a: i32}
|
|
||||||
enum E { A }
|
|
||||||
trait T {
|
|
||||||
fn a() {}
|
|
||||||
}
|
|
||||||
mod foo;<|>
|
|
||||||
impl S {
|
|
||||||
fn a() {}
|
|
||||||
}
|
|
||||||
use crate::foo::bar::Baz;
|
|
||||||
//- /foo/mod.rs
|
|
||||||
pub mod bar;
|
|
||||||
|
|
||||||
//- /foo/bar.rs
|
|
||||||
pub struct Baz;
|
|
||||||
",
|
|
||||||
r"
|
|
||||||
struct S { a: i32, b: () }
|
|
||||||
enum E { A, B }
|
|
||||||
trait T {
|
|
||||||
fn a() {}
|
|
||||||
fn b() {}
|
|
||||||
}
|
|
||||||
mod foo;<|>
|
|
||||||
impl S {
|
|
||||||
fn a() {}
|
|
||||||
fn b() {}
|
|
||||||
}
|
|
||||||
use crate::foo::bar::Baz;
|
|
||||||
",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn typing_inside_a_macro_should_not_invalidate_def_map() {
|
fn typing_inside_a_macro_should_not_invalidate_def_map() {
|
||||||
let (mut db, pos) = TestDB::with_position(
|
let (mut db, pos) = TestDB::with_position(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue