diff options
Diffstat (limited to 'crates/ide/src/completion/completion_context.rs')
-rw-r--r-- | crates/ide/src/completion/completion_context.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ide/src/completion/completion_context.rs b/crates/ide/src/completion/completion_context.rs index 842d1987c..101be8eb5 100644 --- a/crates/ide/src/completion/completion_context.rs +++ b/crates/ide/src/completion/completion_context.rs | |||
@@ -74,8 +74,6 @@ pub(crate) struct CompletionContext<'a> { | |||
74 | pub(super) is_pattern_call: bool, | 74 | pub(super) is_pattern_call: bool, |
75 | /// If this is a macro call, i.e. the () are already there. | 75 | /// If this is a macro call, i.e. the () are already there. |
76 | pub(super) is_macro_call: bool, | 76 | pub(super) is_macro_call: bool, |
77 | /// If this is a string literal, like "lorem ipsum". | ||
78 | pub(super) is_string_literal: bool, | ||
79 | pub(super) is_path_type: bool, | 77 | pub(super) is_path_type: bool, |
80 | pub(super) has_type_args: bool, | 78 | pub(super) has_type_args: bool, |
81 | pub(super) attribute_under_caret: Option<ast::Attr>, | 79 | pub(super) attribute_under_caret: Option<ast::Attr>, |
@@ -158,7 +156,6 @@ impl<'a> CompletionContext<'a> { | |||
158 | is_call: false, | 156 | is_call: false, |
159 | is_pattern_call: false, | 157 | is_pattern_call: false, |
160 | is_macro_call: false, | 158 | is_macro_call: false, |
161 | is_string_literal: false, | ||
162 | is_path_type: false, | 159 | is_path_type: false, |
163 | has_type_args: false, | 160 | has_type_args: false, |
164 | dot_receiver_is_ambiguous_float_literal: false, | 161 | dot_receiver_is_ambiguous_float_literal: false, |
@@ -473,12 +470,6 @@ impl<'a> CompletionContext<'a> { | |||
473 | } else { | 470 | } else { |
474 | false | 471 | false |
475 | }; | 472 | }; |
476 | |||
477 | self.is_string_literal = if let Some(ast::Expr::Literal(l)) = &self.dot_receiver { | ||
478 | matches!(l.kind(), ast::LiteralKind::String { .. }) | ||
479 | } else { | ||
480 | false | ||
481 | }; | ||
482 | } | 473 | } |
483 | if let Some(method_call_expr) = ast::MethodCallExpr::cast(parent) { | 474 | if let Some(method_call_expr) = ast::MethodCallExpr::cast(parent) { |
484 | // As above | 475 | // As above |