diff options
Diffstat (limited to 'crates/ra_hir_def/src/attr.rs')
-rw-r--r-- | crates/ra_hir_def/src/attr.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/ra_hir_def/src/attr.rs index bc7ade921..7f9a6e7ca 100644 --- a/crates/ra_hir_def/src/attr.rs +++ b/crates/ra_hir_def/src/attr.rs | |||
@@ -2,7 +2,8 @@ | |||
2 | 2 | ||
3 | use std::{ops, sync::Arc}; | 3 | use std::{ops, sync::Arc}; |
4 | 4 | ||
5 | use hir_expand::{either::Either, hygiene::Hygiene, AstId, InFile}; | 5 | use either::Either; |
6 | use hir_expand::{hygiene::Hygiene, AstId, InFile}; | ||
6 | use mbe::ast_to_token_tree; | 7 | use mbe::ast_to_token_tree; |
7 | use ra_syntax::{ | 8 | use ra_syntax::{ |
8 | ast::{self, AstNode, AttrsOwner}, | 9 | ast::{self, AstNode, AttrsOwner}, |
@@ -45,8 +46,8 @@ impl Attrs { | |||
45 | AttrDefId::StructFieldId(it) => { | 46 | AttrDefId::StructFieldId(it) => { |
46 | let src = it.parent.child_source(db); | 47 | let src = it.parent.child_source(db); |
47 | match &src.value[it.local_id] { | 48 | match &src.value[it.local_id] { |
48 | Either::A(_tuple) => Attrs::default(), | 49 | Either::Left(_tuple) => Attrs::default(), |
49 | Either::B(record) => Attrs::from_attrs_owner(db, src.with_value(record)), | 50 | Either::Right(record) => Attrs::from_attrs_owner(db, src.with_value(record)), |
50 | } | 51 | } |
51 | } | 52 | } |
52 | AttrDefId::EnumVariantId(var_id) => { | 53 | AttrDefId::EnumVariantId(var_id) => { |