aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/item_tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/item_tree.rs')
-rw-r--r--crates/ra_hir_def/src/item_tree.rs4
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 {
408pub struct Static { 409pub 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 {
436pub struct TypeAlias { 438pub 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>,