From: kennytm Date: Fri, 22 Jun 2018 08:50:41 +0000 (+0800) Subject: Rollup merge of #51629 - topecongiro:multiple-semicolon-in-local-span, r=petrochenkov X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=aa3a6273af45019d4e60eeed9798db69840e26e4;p=rust.git Rollup merge of #51629 - topecongiro:multiple-semicolon-in-local-span, r=petrochenkov Do not consume semicolon twice while parsing local statement The span for a `let` statement includes multiple semicolons. For example, ```rust let x = 2;;; // ^^^^^^^^^^^ The span for the above statement. ``` This PR fixes it. cc https://github.com/rust-lang-nursery/rustfmt/issues/2791. --- aa3a6273af45019d4e60eeed9798db69840e26e4