Skip to content

Commit ab0ca80

Browse files
committed
cleanup
1 parent 9cdcdcb commit ab0ca80

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

crates/ide-completion/src/completions.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ impl Completions {
297297
Visible::No => return,
298298
};
299299
let doc_aliases = ctx.doc_aliases(&func);
300-
301300
self.add(
302301
render_fn(
303302
RenderContext::new(ctx)

crates/ide-completion/src/completions/expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ pub(crate) fn complete_expr_path(
120120

121121
// XXX: For parity with Rust bug #22519, this does not complete Ty::AssocType.
122122
// (where AssocType is defined on a trait, not an inherent impl)
123+
123124
ctx.iterate_path_candidates(&ty, |item| {
124125
add_assoc_item(acc, item);
125126
});

crates/ide-completion/src/render.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ fn main() { let _: m::Spam = S$0 }
11771177
is_private_editable: false,
11781178
postfix_match: None,
11791179
is_definite: false,
1180-
associated_fn_type: None,
1180+
associated_fn: None,
11811181
},
11821182
trigger_call_info: true,
11831183
},
@@ -1205,7 +1205,7 @@ fn main() { let _: m::Spam = S$0 }
12051205
is_private_editable: false,
12061206
postfix_match: None,
12071207
is_definite: false,
1208-
associated_fn_type: None,
1208+
associated_fn: None,
12091209
},
12101210
trigger_call_info: true,
12111211
},
@@ -1285,7 +1285,7 @@ fn foo() { A { the$0 } }
12851285
is_private_editable: false,
12861286
postfix_match: None,
12871287
is_definite: false,
1288-
associated_fn_type: None,
1288+
associated_fn: None,
12891289
},
12901290
},
12911291
]
@@ -1435,7 +1435,7 @@ fn foo(s: S) { s.$0 }
14351435
is_private_editable: false,
14361436
postfix_match: None,
14371437
is_definite: false,
1438-
associated_fn_type: Some(
1438+
associated_fn: Some(
14391439
ReturnsExpectedType,
14401440
),
14411441
},
@@ -2116,7 +2116,7 @@ fn foo(f: Foo) { let _: &u32 = f.b$0 }
21162116
is_private_editable: false,
21172117
postfix_match: None,
21182118
is_definite: false,
2119-
associated_fn_type: Some(
2119+
associated_fn: Some(
21202120
DirectConstructorWithArgs,
21212121
),
21222122
},
@@ -2194,7 +2194,7 @@ fn foo() {
21942194
is_private_editable: false,
21952195
postfix_match: None,
21962196
is_definite: false,
2197-
associated_fn_type: None,
2197+
associated_fn: None,
21982198
},
21992199
},
22002200
]
@@ -2243,7 +2243,7 @@ fn main() {
22432243
is_private_editable: false,
22442244
postfix_match: None,
22452245
is_definite: false,
2246-
associated_fn_type: Some(
2246+
associated_fn: Some(
22472247
DirectConstructor,
22482248
),
22492249
},

0 commit comments

Comments
 (0)