aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/item_tree.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-24 15:07:02 +0100
committerJonas Schievink <[email protected]>2020-06-24 15:54:21 +0100
commit94169ee504bf1a5e59530c1ab1f5f5550ae45914 (patch)
tree2855ba8d1448779ae0e8079eac0add983c19e8b4 /crates/ra_hir_def/src/item_tree.rs
parentabdba92334f800d236c65e543377f75327f7307a (diff)
ItemTree: Use more boxed slices
Diffstat (limited to 'crates/ra_hir_def/src/item_tree.rs')
-rw-r--r--crates/ra_hir_def/src/item_tree.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/item_tree.rs b/crates/ra_hir_def/src/item_tree.rs
index 9e1fd904f..5155b6111 100644
--- a/crates/ra_hir_def/src/item_tree.rs
+++ b/crates/ra_hir_def/src/item_tree.rs
@@ -438,7 +438,7 @@ pub struct Function {
438 pub generic_params: GenericParamsId, 438 pub generic_params: GenericParamsId,
439 pub has_self_param: bool, 439 pub has_self_param: bool,
440 pub is_unsafe: bool, 440 pub is_unsafe: bool,
441 pub params: Vec<TypeRef>, 441 pub params: Box<[TypeRef]>,
442 pub ret_type: TypeRef, 442 pub ret_type: TypeRef,
443 pub ast_id: FileAstId<ast::FnDef>, 443 pub ast_id: FileAstId<ast::FnDef>,
444} 444}
@@ -505,7 +505,7 @@ pub struct Trait {
505 pub visibility: RawVisibilityId, 505 pub visibility: RawVisibilityId,
506 pub generic_params: GenericParamsId, 506 pub generic_params: GenericParamsId,
507 pub auto: bool, 507 pub auto: bool,
508 pub items: Vec<AssocItem>, 508 pub items: Box<[AssocItem]>,
509 pub ast_id: FileAstId<ast::TraitDef>, 509 pub ast_id: FileAstId<ast::TraitDef>,
510} 510}
511 511
@@ -515,7 +515,7 @@ pub struct Impl {
515 pub target_trait: Option<TypeRef>, 515 pub target_trait: Option<TypeRef>,
516 pub target_type: TypeRef, 516 pub target_type: TypeRef,
517 pub is_negative: bool, 517 pub is_negative: bool,
518 pub items: Vec<AssocItem>, 518 pub items: Box<[AssocItem]>,
519 pub ast_id: FileAstId<ast::ImplDef>, 519 pub ast_id: FileAstId<ast::ImplDef>,
520} 520}
521 521
@@ -524,7 +524,7 @@ pub struct TypeAlias {
524 pub name: Name, 524 pub name: Name,
525 pub visibility: RawVisibilityId, 525 pub visibility: RawVisibilityId,
526 /// Bounds on the type alias itself. Only valid in trait declarations, eg. `type Assoc: Copy;`. 526 /// Bounds on the type alias itself. Only valid in trait declarations, eg. `type Assoc: Copy;`.
527 pub bounds: Vec<TypeBound>, 527 pub bounds: Box<[TypeBound]>,
528 pub generic_params: GenericParamsId, 528 pub generic_params: GenericParamsId,
529 pub type_ref: Option<TypeRef>, 529 pub type_ref: Option<TypeRef>,
530 pub ast_id: FileAstId<ast::TypeAliasDef>, 530 pub ast_id: FileAstId<ast::TypeAliasDef>,
@@ -541,7 +541,7 @@ pub struct Mod {
541#[derive(Debug, Clone, Eq, PartialEq)] 541#[derive(Debug, Clone, Eq, PartialEq)]
542pub enum ModKind { 542pub enum ModKind {
543 /// `mod m { ... }` 543 /// `mod m { ... }`
544 Inline { items: Vec<ModItem> }, 544 Inline { items: Box<[ModItem]> },
545 545
546 /// `mod m;` 546 /// `mod m;`
547 Outline {}, 547 Outline {},