Merge pull request #19412 from Veykril/push-krktmvxmlxmt

chore: Remove some unnecessary usage of `Semantics`
This commit is contained in:
Lukas Wirth 2025-03-21 19:25:41 +00:00 committed by GitHub
commit 32fa60f3a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 47 deletions

View file

@ -823,6 +823,7 @@ impl<'a> CompletionContext<'a> {
exclude_flyimport
.extend(exclude_traits.iter().map(|&t| (t.into(), AutoImportExclusionType::Always)));
// FIXME: This should be part of `CompletionAnalysis` / `expand_and_analyze`
let complete_semicolon = if config.add_semicolon_to_unit {
let inside_closure_ret = token.parent_ancestors().try_for_each(|ancestor| {
match_ast! {