Skip to content

Commit 0cb9103

Browse files
committed
cleanup
1 parent 00af072 commit 0cb9103

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
@@ -1176,7 +1176,7 @@ fn main() { let _: m::Spam = S$0 }
11761176
is_private_editable: false,
11771177
postfix_match: None,
11781178
is_definite: false,
1179-
associated_fn_type: None,
1179+
associated_fn: None,
11801180
},
11811181
trigger_call_info: true,
11821182
},
@@ -1203,7 +1203,7 @@ fn main() { let _: m::Spam = S$0 }
12031203
is_private_editable: false,
12041204
postfix_match: None,
12051205
is_definite: false,
1206-
associated_fn_type: None,
1206+
associated_fn: None,
12071207
},
12081208
trigger_call_info: true,
12091209
},
@@ -1282,7 +1282,7 @@ fn foo() { A { the$0 } }
12821282
is_private_editable: false,
12831283
postfix_match: None,
12841284
is_definite: false,
1285-
associated_fn_type: None,
1285+
associated_fn: None,
12861286
},
12871287
},
12881288
]
@@ -1432,7 +1432,7 @@ fn foo(s: S) { s.$0 }
14321432
is_private_editable: false,
14331433
postfix_match: None,
14341434
is_definite: false,
1435-
associated_fn_type: Some(
1435+
associated_fn: Some(
14361436
ReturnsExpectedType,
14371437
),
14381438
},
@@ -2113,7 +2113,7 @@ fn foo(f: Foo) { let _: &u32 = f.b$0 }
21132113
is_private_editable: false,
21142114
postfix_match: None,
21152115
is_definite: false,
2116-
associated_fn_type: Some(
2116+
associated_fn: Some(
21172117
DirectConstructorWithArgs,
21182118
),
21192119
},
@@ -2190,7 +2190,7 @@ fn foo() {
21902190
is_private_editable: false,
21912191
postfix_match: None,
21922192
is_definite: false,
2193-
associated_fn_type: None,
2193+
associated_fn: None,
21942194
},
21952195
},
21962196
]
@@ -2239,7 +2239,7 @@ fn main() {
22392239
is_private_editable: false,
22402240
postfix_match: None,
22412241
is_definite: false,
2242-
associated_fn_type: Some(
2242+
associated_fn: Some(
22432243
DirectConstructor,
22442244
),
22452245
},

0 commit comments

Comments
 (0)