Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/context.rs')
-rw-r--r--crates/ide-completion/src/context.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide-completion/src/context.rs b/crates/ide-completion/src/context.rs
index ae3f717607..485e5f0caf 100644
--- a/crates/ide-completion/src/context.rs
+++ b/crates/ide-completion/src/context.rs
@@ -408,9 +408,11 @@ pub(crate) enum CompletionAnalysis<'db> {
/// Set if we are currently completing in an unexpanded attribute, this usually implies a builtin attribute like `allow($0)`
UnexpandedAttrTT {
colon_prefix: bool,
- fake_attribute_under_caret: Option<ast::Attr>,
+ fake_attribute_under_caret: Option<ast::TokenTreeMeta>,
extern_crate: Option<ast::ExternCrate>,
},
+ /// Set if we are inside the predicate of a #[cfg] or #[cfg_attr].
+ CfgPredicate,
MacroSegment,
}