diff options
Diffstat (limited to 'src/tools/rust-analyzer/crates/ide-completion/src/completions.rs')
-rw-r--r-- | src/tools/rust-analyzer/crates/ide-completion/src/completions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-completion/src/completions.rs b/src/tools/rust-analyzer/crates/ide-completion/src/completions.rs index f60ac1501..7d38c638a 100644 --- a/src/tools/rust-analyzer/crates/ide-completion/src/completions.rs +++ b/src/tools/rust-analyzer/crates/ide-completion/src/completions.rs @@ -626,6 +626,7 @@ fn enum_variants_with_paths( ctx.db, hir::ModuleDef::from(variant), ctx.config.prefer_no_std, + ctx.config.prefer_prelude, ) { // Variants with trivial paths are already added by the existing completion logic, // so we should avoid adding these twice |