about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVictor Song <vsong1618@gmail.com>2024-01-30 01:20:27 -0600
committerVictor Song <vsong1618@gmail.com>2024-02-13 00:00:02 -0600
commit027f263ef5a61324fea120234fdc04c57dafb995 (patch)
tree77a97d6ae46e6c2745c007c2b4f92182503854a4
parent6cd458f3d08030cddcd488ef28c2a8b581bd7928 (diff)
downloadrust-027f263ef5a61324fea120234fdc04c57dafb995.tar.gz
rust-027f263ef5a61324fea120234fdc04c57dafb995.zip
Note `FIXME` for suffixes
-rw-r--r--crates/proc-macro-srv/src/server/rust_analyzer_span.rs1
-rw-r--r--crates/proc-macro-srv/src/server/token_id.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/proc-macro-srv/src/server/rust_analyzer_span.rs b/crates/proc-macro-srv/src/server/rust_analyzer_span.rs
index 4a2ad40ad99..f52a4875b03 100644
--- a/crates/proc-macro-srv/src/server/rust_analyzer_span.rs
+++ b/crates/proc-macro-srv/src/server/rust_analyzer_span.rs
@@ -76,6 +76,7 @@ impl server::FreeFunctions for RaSpanServer {
 
         let kind = literal_to_external(literal.kind()).ok_or(Err(()))?;
 
+        // FIXME: handle more than just int and float suffixes
         let suffix = match literal.kind() {
             ast::LiteralKind::FloatNumber(num) | ast::LiteralKind::IntNumber(num) => num.suffix(),
             _ => None,
diff --git a/crates/proc-macro-srv/src/server/token_id.rs b/crates/proc-macro-srv/src/server/token_id.rs
index 4dbda7e53c2..d5f73592557 100644
--- a/crates/proc-macro-srv/src/server/token_id.rs
+++ b/crates/proc-macro-srv/src/server/token_id.rs
@@ -67,6 +67,7 @@ impl server::FreeFunctions for TokenIdServer {
 
         let kind = literal_to_external(literal.kind()).ok_or(Err(()))?;
 
+        // FIXME: handle more than just int and float suffixes
         let suffix = match literal.kind() {
             ast::LiteralKind::FloatNumber(num) | ast::LiteralKind::IntNumber(num) => num.suffix(),
             _ => None,