Update last_span in replace_token
auto merge of #12849 : nick29581/rust/doubles, r=alexcrichton