@@ -109,8 +109,10 @@ impl flags::Scip {
109
109
text_range : TextRange | {
110
110
let is_local = symbol. starts_with ( "local " ) ;
111
111
if !is_local && !nonlocal_symbols_emitted. insert ( symbol. clone ( ) ) {
112
- // See #18772. Duplicate SymbolInformation for inherent impls is omitted.
113
112
if is_inherent_impl {
113
+ // FIXME: See #18772. Duplicate SymbolInformation for inherent impls is
114
+ // omitted. It would be preferable to emit them with numbers with
115
+ // disambiguation, but this is more complex to implement.
114
116
false
115
117
} else {
116
118
let source_location =
@@ -283,7 +285,7 @@ impl flags::Scip {
283
285
}
284
286
}
285
287
286
- // TODO: Fix the known buggy cases described here.
288
+ // FIXME: Known buggy cases are described here.
287
289
const DUPLICATE_SYMBOLS_MESSAGE : & str = "
288
290
Encountered duplicate scip symbols, indicating an internal rust-analyzer bug. These duplicates are
289
291
included in the output, but this causes information lookup to be ambiguous and so information about
@@ -802,7 +804,7 @@ pub mod example_mod {
802
804
) ;
803
805
}
804
806
805
- // TODO : This test represents current misbehavior.
807
+ // FIXME : This test represents current misbehavior.
806
808
#[ test]
807
809
fn symbol_for_nested_function ( ) {
808
810
check_symbol (
@@ -813,12 +815,12 @@ pub mod example_mod {
813
815
}
814
816
"# ,
815
817
"rust-analyzer cargo main . inner_func()." ,
816
- // TODO : This should be a local:
818
+ // FIXME : This should be a local:
817
819
// "local enclosed by rust-analyzer cargo main . func().",
818
820
) ;
819
821
}
820
822
821
- // TODO : This test represents current misbehavior.
823
+ // FIXME : This test represents current misbehavior.
822
824
#[ test]
823
825
fn symbol_for_struct_in_function ( ) {
824
826
check_symbol (
@@ -829,12 +831,12 @@ pub mod example_mod {
829
831
}
830
832
"# ,
831
833
"rust-analyzer cargo main . SomeStruct#" ,
832
- // TODO : This should be a local:
834
+ // FIXME : This should be a local:
833
835
// "local enclosed by rust-analyzer cargo main . func().",
834
836
) ;
835
837
}
836
838
837
- // TODO : This test represents current misbehavior.
839
+ // FIXME : This test represents current misbehavior.
838
840
#[ test]
839
841
fn symbol_for_const_in_function ( ) {
840
842
check_symbol (
@@ -845,12 +847,12 @@ pub mod example_mod {
845
847
}
846
848
"# ,
847
849
"rust-analyzer cargo main . SOME_CONST." ,
848
- // TODO : This should be a local:
850
+ // FIXME : This should be a local:
849
851
// "local enclosed by rust-analyzer cargo main . func().",
850
852
) ;
851
853
}
852
854
853
- // TODO : This test represents current misbehavior.
855
+ // FIXME : This test represents current misbehavior.
854
856
#[ test]
855
857
fn symbol_for_static_in_function ( ) {
856
858
check_symbol (
@@ -861,7 +863,7 @@ pub mod example_mod {
861
863
}
862
864
"# ,
863
865
"rust-analyzer cargo main . SOME_STATIC." ,
864
- // TODO : This should be a local:
866
+ // FIXME : This should be a local:
865
867
// "local enclosed by rust-analyzer cargo main . func().",
866
868
) ;
867
869
}
0 commit comments