]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45773 - Badel2:dotdoteq, r=petrochenkov
authorbors <bors@rust-lang.org>
Fri, 10 Nov 2017 01:40:21 +0000 (01:40 +0000)
committerbors <bors@rust-lang.org>
Fri, 10 Nov 2017 01:40:21 +0000 (01:40 +0000)
commitd5ff0e6422061c390a141354af8eacd540dca10b
tree4ad997935d27db7d5a0dc758415f757d62fe12fb
parentaa1b0b239127ee379c5b3041240bc5ae247cf280
parentb81a7b333abce1d5de85406947db5007d19730c4
Auto merge of #45773 - Badel2:dotdoteq, r=petrochenkov

Add error for `...` in expressions

Follow-up to https://github.com/rust-lang/rust/pull/44709
Tracking issue: https://github.com/rust-lang/rust/issues/28237

* Using `...` in expressions was a warning, now it's an error
* The error message suggests using `..` or `..=` instead, and explains the difference
* Updated remaining occurrences of `...` to `..=`

r? petrochenkov
src/libsyntax/parse/parser.rs
src/libsyntax/print/pprust.rs