@@ -150,6 +150,8 @@ pub(super) enum ItemListKind {
150150pub ( super ) enum Qualified {
151151 No ,
152152 With ( PathQualifierCtx ) ,
153+ /// <_>::
154+ Infer ,
153155 /// Whether the path is an absolute path
154156 Absolute ,
155157}
@@ -163,8 +165,6 @@ pub(crate) struct PathQualifierCtx {
163165 pub ( crate ) is_super_chain : bool ,
164166 /// Whether the qualifier comes from a use tree parent or not
165167 pub ( crate ) use_tree_parent : bool ,
166- /// <_>
167- pub ( crate ) is_infer_qualifier : bool ,
168168}
169169
170170/// The state of the pattern we are completing.
@@ -320,13 +320,16 @@ pub(crate) struct CompletionContext<'a> {
320320 pub ( super ) expected_type : Option < Type > ,
321321
322322 /// The parent function of the cursor position if it exists.
323+ // FIXME: This probably doesn't belong here
323324 pub ( super ) function_def : Option < ast:: Fn > ,
324325 /// The parent impl of the cursor position if it exists.
326+ // FIXME: This probably doesn't belong here
325327 pub ( super ) impl_def : Option < ast:: Impl > ,
326328 /// Are we completing inside a let statement with a missing semicolon?
327329 // FIXME: This should be part of PathKind::Expr
328330 pub ( super ) incomplete_let : bool ,
329331
332+ // FIXME: This shouldn't exist
330333 pub ( super ) previous_token : Option < SyntaxToken > ,
331334
332335 pub ( super ) ident_ctx : IdentContext ,
@@ -354,6 +357,7 @@ impl<'a> CompletionContext<'a> {
354357 }
355358 }
356359
360+ // FIXME: This shouldn't exist
357361 pub ( crate ) fn previous_token_is ( & self , kind : SyntaxKind ) -> bool {
358362 self . previous_token . as_ref ( ) . map_or ( false , |tok| tok. kind ( ) == kind)
359363 }
0 commit comments