rustc: adjust span for error message to not trim last letter
auto merge of #6863 : huonw/rust/error-span, r=thestinger