diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-12 14:51:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-12 14:51:02 +0000 |
commit | 254c8efc5b34484d503b68ecc5c8ed6802117435 (patch) | |
tree | 7f330ae43be1b96e27a051a182fff4694fb3b748 /crates/ra_hir_def/src | |
parent | c213c3b36b7987504c6c3703b76a637dd0d01355 (diff) | |
parent | 8e65b773874909985b6ffc9247ea9dfbaac6a02b (diff) |
Merge #2540
2540: Dedupe from_source impls r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/keys.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/keys.rs b/crates/ra_hir_def/src/keys.rs index 4611c6e38..d844f7a62 100644 --- a/crates/ra_hir_def/src/keys.rs +++ b/crates/ra_hir_def/src/keys.rs | |||
@@ -12,7 +12,7 @@ use crate::{ | |||
12 | TypeAliasId, TypeParamId, UnionId, | 12 | TypeAliasId, TypeParamId, UnionId, |
13 | }; | 13 | }; |
14 | 14 | ||
15 | type Key<K, V> = crate::dyn_map::Key<InFile<K>, V, AstPtrPolicy<K, V>>; | 15 | pub type Key<K, V> = crate::dyn_map::Key<InFile<K>, V, AstPtrPolicy<K, V>>; |
16 | 16 | ||
17 | pub const FUNCTION: Key<ast::FnDef, FunctionId> = Key::new(); | 17 | pub const FUNCTION: Key<ast::FnDef, FunctionId> = Key::new(); |
18 | pub const CONST: Key<ast::ConstDef, ConstId> = Key::new(); | 18 | pub const CONST: Key<ast::ConstDef, ConstId> = Key::new(); |