@@ -461,9 +461,7 @@ impl Analysis {
461
461
hasher : impl Fn ( & InlayHint ) -> u64 + Send + UnwindSafe ,
462
462
) -> Cancellable < Option < InlayHint > > {
463
463
self . with_db ( |db| {
464
- salsa:: attach ( db, || {
465
- inlay_hints:: inlay_hints_resolve ( db, file_id, resolve_range, hash, config, hasher)
466
- } )
464
+ inlay_hints:: inlay_hints_resolve ( db, file_id, resolve_range, hash, config, hasher)
467
465
} )
468
466
}
469
467
@@ -533,9 +531,7 @@ impl Analysis {
533
531
let search_scope = AssertUnwindSafe ( search_scope) ;
534
532
self . with_db ( |db| {
535
533
let _ = & search_scope;
536
- salsa:: attach ( db, || {
537
- references:: find_all_refs ( & Semantics :: new ( db) , position, search_scope. 0 )
538
- } )
534
+ references:: find_all_refs ( & Semantics :: new ( db) , position, search_scope. 0 )
539
535
} )
540
536
}
541
537
@@ -545,15 +541,15 @@ impl Analysis {
545
541
config : & HoverConfig ,
546
542
range : FileRange ,
547
543
) -> Cancellable < Option < RangeInfo < HoverResult > > > {
548
- self . with_db ( |db| salsa :: attach ( db , || hover:: hover ( db, range, config) ) )
544
+ self . with_db ( |db| hover:: hover ( db, range, config) )
549
545
}
550
546
551
547
/// Returns moniker of symbol at position.
552
548
pub fn moniker (
553
549
& self ,
554
550
position : FilePosition ,
555
551
) -> Cancellable < Option < RangeInfo < Vec < moniker:: MonikerResult > > > > {
556
- self . with_db ( |db| salsa :: attach ( db , || moniker:: moniker ( db, position) ) )
552
+ self . with_db ( |db| moniker:: moniker ( db, position) )
557
553
}
558
554
559
555
/// Returns URL(s) for the documentation of the symbol under the cursor.
@@ -581,7 +577,7 @@ impl Analysis {
581
577
& self ,
582
578
position : FilePosition ,
583
579
) -> Cancellable < Option < RangeInfo < Vec < NavigationTarget > > > > {
584
- self . with_db ( |db| salsa :: attach ( db , || call_hierarchy:: call_hierarchy ( db, position) ) )
580
+ self . with_db ( |db| call_hierarchy:: call_hierarchy ( db, position) )
585
581
}
586
582
587
583
/// Computes incoming calls for the given file position.
@@ -649,7 +645,7 @@ impl Analysis {
649
645
650
646
/// Returns the set of possible targets to run for the current file.
651
647
pub fn runnables ( & self , file_id : FileId ) -> Cancellable < Vec < Runnable > > {
652
- self . with_db ( |db| salsa :: attach ( db , || runnables:: runnables ( db, file_id) ) )
648
+ self . with_db ( |db| runnables:: runnables ( db, file_id) )
653
649
}
654
650
655
651
/// Returns the set of tests for the given file position.
@@ -672,9 +668,7 @@ impl Analysis {
672
668
position : FilePosition ,
673
669
) -> Cancellable < Option < Vec < HighlightedRange > > > {
674
670
self . with_db ( |db| {
675
- salsa:: attach ( db, || {
676
- highlight_related:: highlight_related ( & Semantics :: new ( db) , config, position)
677
- } )
671
+ highlight_related:: highlight_related ( & Semantics :: new ( db) , config, position)
678
672
} )
679
673
}
680
674
0 commit comments