Add FIXME comment

This commit is contained in:
Seiichi Uchida 2018-08-05 15:06:05 +09:00
parent 49945a14f7
commit 3ec6de1de8

View file

@ -275,6 +275,7 @@ impl Chain {
for chain_item in rev_children.into_iter().rev() { for chain_item in rev_children.into_iter().rev() {
let comment_span = mk_sp(prev_hi, chain_item.span.lo()); let comment_span = mk_sp(prev_hi, chain_item.span.lo());
let comment_snippet = context.snippet(comment_span); 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() if !(context.config.use_try_shorthand()
|| comment_snippet.trim().is_empty() || comment_snippet.trim().is_empty()
|| is_tries(comment_snippet.trim())) || is_tries(comment_snippet.trim()))