]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #70058 - Centril:fix-70050, r=petrochenkov
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 21 Mar 2020 04:33:20 +0000 (05:33 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Mar 2020 04:33:20 +0000 (05:33 +0100)
commit67e418ce75b6aab0918268e4268570b7215abe68
treedccb616ee1f5eb1bc1638cdea6c1db3ca37538b0
parent45b10f6f9876abe8b57394ef28e57936c4a07466
parent9b9a22cd2e537708152e847263fa2b999649a53c
Rollup merge of #70058 - Centril:fix-70050, r=petrochenkov

can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs.

Make `can_begin_literal_or_bool` (renamed to `can_begin_literal_maybe_minus`) accept `NtLiteral(e) | NtExpr(e)` where `e` is either a literal or a negated literal.

Fixes https://github.com/rust-lang/rust/issues/70050.

r? @petrochenkov