Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/extern_abi.rs')
-rw-r--r--crates/ide-completion/src/completions/extern_abi.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ide-completion/src/completions/extern_abi.rs b/crates/ide-completion/src/completions/extern_abi.rs
index b5d5604c75..1a06e0a3a0 100644
--- a/crates/ide-completion/src/completions/extern_abi.rs
+++ b/crates/ide-completion/src/completions/extern_abi.rs
@@ -52,8 +52,13 @@ pub(crate) fn complete_extern_abi(
let abi_str = expanded;
let source_range = abi_str.text_range_between_quotes()?;
for &abi in SUPPORTED_CALLING_CONVENTIONS {
- CompletionItem::new(CompletionItemKind::Keyword, source_range, SmolStr::new_static(abi))
- .add_to(acc, ctx.db);
+ CompletionItem::new(
+ CompletionItemKind::Keyword,
+ source_range,
+ SmolStr::new_static(abi),
+ ctx.edition,
+ )
+ .add_to(acc, ctx.db);
}
Some(())
}