aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-03-21 21:29:12 +0000
committerFlorian Diebold <[email protected]>2019-03-21 21:29:12 +0000
commitcbb418ebb87309a798ca16408c1dfb09cd638a9b (patch)
tree8298b4c130452808efad219ebae169d3eec90a81 /crates/ra_ide_api
parent97be0e6c46196552607aa0121b32a41a3515873d (diff)
Rename name field to ctor as well
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/completion/complete_dot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs
index f975214e9..31d5374ba 100644
--- a/crates/ra_ide_api/src/completion/complete_dot.rs
+++ b/crates/ra_ide_api/src/completion/complete_dot.rs
@@ -24,7 +24,7 @@ pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) {
24fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) { 24fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) {
25 for receiver in receiver.autoderef(ctx.db) { 25 for receiver in receiver.autoderef(ctx.db) {
26 match receiver { 26 match receiver {
27 Ty::Apply(a_ty) => match a_ty.name { 27 Ty::Apply(a_ty) => match a_ty.ctor {
28 TypeCtor::Adt(AdtDef::Struct(s)) => { 28 TypeCtor::Adt(AdtDef::Struct(s)) => {
29 for field in s.fields(ctx.db) { 29 for field in s.fields(ctx.db) {
30 acc.add_field(ctx, field, &a_ty.parameters); 30 acc.add_field(ctx, field, &a_ty.parameters);