mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-19 03:28:36 +00:00
Merge pull request #19412 from Veykril/push-krktmvxmlxmt
chore: Remove some unnecessary usage of `Semantics`
This commit is contained in:
commit
32fa60f3a6
6 changed files with 46 additions and 47 deletions
|
|
@ -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! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue