about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-05-03 22:54:22 +0900
committerHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-11-27 21:48:10 +0900
commit61c3e4d56ecc77899095590d9fd03ffc39e9849e (patch)
tree09a87f3a2f91bc8f6cdcbb55ff479d3612a8fba8
parente65c060d78db59c5f21cb13f4ec322e407f0a642 (diff)
downloadrust-61c3e4d56ecc77899095590d9fd03ffc39e9849e.tar.gz
rust-61c3e4d56ecc77899095590d9fd03ffc39e9849e.zip
Make tidy test happy
-rw-r--r--compiler/rustc_parse/src/parser/stmt.rs2
-rw-r--r--tests/ui/suggestions/range-index-instead-of-colon.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs
index 94d200188ea..71db5609edc 100644
--- a/compiler/rustc_parse/src/parser/stmt.rs
+++ b/compiler/rustc_parse/src/parser/stmt.rs
@@ -573,7 +573,7 @@ impl<'a> Parser<'a> {
                         if self.prev_token.is_integer_lit()
                             && self.look_ahead(1, |token| token.is_integer_lit())
                         {
-                            // TODO(hkmatsumoto): Might be better to trigger
+                            // FIXME(hkmatsumoto): Might be better to trigger
                             // this only when parsing an index expression.
                             err.span_suggestion_verbose(
                                 self.token.span,
diff --git a/tests/ui/suggestions/range-index-instead-of-colon.rs b/tests/ui/suggestions/range-index-instead-of-colon.rs
index a5e0098544d..f183590d2c7 100644
--- a/tests/ui/suggestions/range-index-instead-of-colon.rs
+++ b/tests/ui/suggestions/range-index-instead-of-colon.rs
@@ -5,4 +5,4 @@ fn main() {
     //~^ ERROR: expected one of
     //~| HELP: you might have meant to make a slice with range index
     //~| HELP: maybe write a path separator here
-}
\ No newline at end of file
+}