diff options
author | Jonas Schievink <[email protected]> | 2020-06-22 15:41:10 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-06-24 15:53:16 +0100 |
commit | 1fbe21a545104e85aa5f9d0d8a45ec1040396cb9 (patch) | |
tree | 02b1811fb5cebde9e0c839b4e658cd023a9bcd8a /crates/ra_hir_def/src/item_tree.rs | |
parent | 4b03b39d5b4b00daffb120a4d2d9ea4a55a9a7ac (diff) |
Make remaining item data queries use item tree
Diffstat (limited to 'crates/ra_hir_def/src/item_tree.rs')
-rw-r--r-- | crates/ra_hir_def/src/item_tree.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/item_tree.rs b/crates/ra_hir_def/src/item_tree.rs index 9a5dd701e..c35d63295 100644 --- a/crates/ra_hir_def/src/item_tree.rs +++ b/crates/ra_hir_def/src/item_tree.rs | |||
@@ -349,6 +349,7 @@ pub struct Function { | |||
349 | pub visibility: RawVisibility, | 349 | pub visibility: RawVisibility, |
350 | pub generic_params: GenericParams, | 350 | pub generic_params: GenericParams, |
351 | pub has_self_param: bool, | 351 | pub has_self_param: bool, |
352 | pub is_unsafe: bool, | ||
352 | pub params: Vec<TypeRef>, | 353 | pub params: Vec<TypeRef>, |
353 | pub ret_type: TypeRef, | 354 | pub ret_type: TypeRef, |
354 | pub ast_id: FileAstId<ast::FnDef>, | 355 | pub ast_id: FileAstId<ast::FnDef>, |
@@ -408,6 +409,7 @@ pub struct Const { | |||
408 | pub struct Static { | 409 | pub struct Static { |
409 | pub name: Name, | 410 | pub name: Name, |
410 | pub visibility: RawVisibility, | 411 | pub visibility: RawVisibility, |
412 | pub mutable: bool, | ||
411 | pub type_ref: TypeRef, | 413 | pub type_ref: TypeRef, |
412 | pub ast_id: FileAstId<ast::StaticDef>, | 414 | pub ast_id: FileAstId<ast::StaticDef>, |
413 | } | 415 | } |
@@ -436,6 +438,8 @@ pub struct Impl { | |||
436 | pub struct TypeAlias { | 438 | pub struct TypeAlias { |
437 | pub name: Name, | 439 | pub name: Name, |
438 | pub visibility: RawVisibility, | 440 | pub visibility: RawVisibility, |
441 | /// Bounds on the type alias itself. Only valid in trait declarations, eg. `type Assoc: Copy;`. | ||
442 | pub bounds: Vec<TypeBound>, | ||
439 | pub generic_params: GenericParams, | 443 | pub generic_params: GenericParams, |
440 | pub type_ref: Option<TypeRef>, | 444 | pub type_ref: Option<TypeRef>, |
441 | pub ast_id: FileAstId<ast::TypeAliasDef>, | 445 | pub ast_id: FileAstId<ast::TypeAliasDef>, |