mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Move constants to new ID
This allows us to get rid of trait item index
This commit is contained in:
parent
ee95a35664
commit
111891dc2d
16 changed files with 119 additions and 89 deletions
|
@ -309,7 +309,6 @@ impl RootDatabase {
|
|||
hir::db::StructDataQuery
|
||||
hir::db::EnumDataQuery
|
||||
hir::db::TraitDataQuery
|
||||
hir::db::TraitItemsIndexQuery
|
||||
hir::db::RawItemsWithSourceMapQuery
|
||||
hir::db::RawItemsQuery
|
||||
hir::db::CrateDefMapQuery
|
||||
|
|
|
@ -404,9 +404,7 @@ mod tests {
|
|||
check_hover_result(
|
||||
r#"
|
||||
//- /main.rs
|
||||
fn main() {
|
||||
const foo<|>: u32 = 0;
|
||||
}
|
||||
const foo<|>: u32 = 0;
|
||||
"#,
|
||||
&["const foo: u32"],
|
||||
);
|
||||
|
@ -414,9 +412,7 @@ mod tests {
|
|||
check_hover_result(
|
||||
r#"
|
||||
//- /main.rs
|
||||
fn main() {
|
||||
static foo<|>: u32 = 0;
|
||||
}
|
||||
static foo<|>: u32 = 0;
|
||||
"#,
|
||||
&["static foo: u32"],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue