]> git.lizzy.rs Git - rust.git/commitdiff
Add FIXME comment
authorSeiichi Uchida <seuchida@gmail.com>
Sun, 5 Aug 2018 06:06:05 +0000 (15:06 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Sun, 5 Aug 2018 06:06:05 +0000 (15:06 +0900)
src/chains.rs

index 9d0e8c7c6d282f9d8182d2ae2f1f8ae667727f9e..1937bfa1960acdd9437598684d94f7f1da231f79 100644 (file)
@@ -275,6 +275,7 @@ fn is_tries(s: &str) -> bool {
         for chain_item in rev_children.into_iter().rev() {
             let comment_span = mk_sp(prev_hi, chain_item.span.lo());
             let comment_snippet = context.snippet(comment_span);
+            // FIXME: Figure out the way to get a correct span when converting `try!` to `?`.
             if !(context.config.use_try_shorthand()
                 || comment_snippet.trim().is_empty()
                 || is_tries(comment_snippet.trim()))