Skip to content

Commit d72aec0

Browse files
committed
TODO -> FIXME
1 parent 03cb63c commit d72aec0

File tree

1 file changed

+12
-10
lines changed
  • crates/rust-analyzer/src/cli

1 file changed

+12
-10
lines changed

crates/rust-analyzer/src/cli/scip.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ impl flags::Scip {
109109
text_range: TextRange| {
110110
let is_local = symbol.starts_with("local ");
111111
if !is_local && !nonlocal_symbols_emitted.insert(symbol.clone()) {
112-
// See #18772. Duplicate SymbolInformation for inherent impls is omitted.
113112
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.
114116
false
115117
} else {
116118
let source_location =
@@ -283,7 +285,7 @@ impl flags::Scip {
283285
}
284286
}
285287

286-
// TODO: Fix the known buggy cases described here.
288+
// FIXME: Known buggy cases are described here.
287289
const DUPLICATE_SYMBOLS_MESSAGE: &str = "
288290
Encountered duplicate scip symbols, indicating an internal rust-analyzer bug. These duplicates are
289291
included in the output, but this causes information lookup to be ambiguous and so information about
@@ -802,7 +804,7 @@ pub mod example_mod {
802804
);
803805
}
804806

805-
// TODO: This test represents current misbehavior.
807+
// FIXME: This test represents current misbehavior.
806808
#[test]
807809
fn symbol_for_nested_function() {
808810
check_symbol(
@@ -813,12 +815,12 @@ pub mod example_mod {
813815
}
814816
"#,
815817
"rust-analyzer cargo main . inner_func().",
816-
// TODO: This should be a local:
818+
// FIXME: This should be a local:
817819
// "local enclosed by rust-analyzer cargo main . func().",
818820
);
819821
}
820822

821-
// TODO: This test represents current misbehavior.
823+
// FIXME: This test represents current misbehavior.
822824
#[test]
823825
fn symbol_for_struct_in_function() {
824826
check_symbol(
@@ -829,12 +831,12 @@ pub mod example_mod {
829831
}
830832
"#,
831833
"rust-analyzer cargo main . SomeStruct#",
832-
// TODO: This should be a local:
834+
// FIXME: This should be a local:
833835
// "local enclosed by rust-analyzer cargo main . func().",
834836
);
835837
}
836838

837-
// TODO: This test represents current misbehavior.
839+
// FIXME: This test represents current misbehavior.
838840
#[test]
839841
fn symbol_for_const_in_function() {
840842
check_symbol(
@@ -845,12 +847,12 @@ pub mod example_mod {
845847
}
846848
"#,
847849
"rust-analyzer cargo main . SOME_CONST.",
848-
// TODO: This should be a local:
850+
// FIXME: This should be a local:
849851
// "local enclosed by rust-analyzer cargo main . func().",
850852
);
851853
}
852854

853-
// TODO: This test represents current misbehavior.
855+
// FIXME: This test represents current misbehavior.
854856
#[test]
855857
fn symbol_for_static_in_function() {
856858
check_symbol(
@@ -861,7 +863,7 @@ pub mod example_mod {
861863
}
862864
"#,
863865
"rust-analyzer cargo main . SOME_STATIC.",
864-
// TODO: This should be a local:
866+
// FIXME: This should be a local:
865867
// "local enclosed by rust-analyzer cargo main . func().",
866868
);
867869
}

0 commit comments

Comments
 (0)