diff options
author | Aleksey Kladov <[email protected]> | 2020-03-19 15:00:11 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-19 17:46:30 +0000 |
commit | f840fcb2f525c13809d6a736e434155edf075a06 (patch) | |
tree | ce3eb047dd9fe9005750a3b1417d95b1aa8fe01e /crates/ra_hir_def/src/body.rs | |
parent | 988f1dda6bde576ec2457dd97a7525014609c771 (diff) |
Simplify Arena to use a generic index
Diffstat (limited to 'crates/ra_hir_def/src/body.rs')
-rw-r--r-- | crates/ra_hir_def/src/body.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index 34561ee73..27a297e8b 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -121,8 +121,8 @@ pub(crate) struct Mark { | |||
121 | /// The body of an item (function, const etc.). | 121 | /// The body of an item (function, const etc.). |
122 | #[derive(Debug, Eq, PartialEq)] | 122 | #[derive(Debug, Eq, PartialEq)] |
123 | pub struct Body { | 123 | pub struct Body { |
124 | pub exprs: Arena<ExprId, Expr>, | 124 | pub exprs: Arena<Expr>, |
125 | pub pats: Arena<PatId, Pat>, | 125 | pub pats: Arena<Pat>, |
126 | /// The patterns for the function's parameters. While the parameter types are | 126 | /// The patterns for the function's parameters. While the parameter types are |
127 | /// part of the function signature, the patterns are not (they don't change | 127 | /// part of the function signature, the patterns are not (they don't change |
128 | /// the external type of the function). | 128 | /// the external type of the function). |