about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-09 17:46:36 +0000
committerbors <bors@rust-lang.org>2018-06-09 17:46:36 +0000
commit61d88318aa66669fba061e9af529365172d63cd0 (patch)
treee78ad015a222730438afdc7dd574a5e7d74d6fb8 /src/libsyntax/parse/lexer/mod.rs
parent0b491a17b95fa984827882b826ef616391b7c5d0 (diff)
parent759a0e07b58e8b231091854b4e7e2f0ee8a8eddc (diff)
downloadrust-61d88318aa66669fba061e9af529365172d63cd0.tar.gz
rust-61d88318aa66669fba061e9af529365172d63cd0.zip
Auto merge of #51068 - Crazycolorz5:pluseqsplitting, r=petrochenkov
parser: Split `+=` into `+` and `=` where `+` is explicitly requested (such as generics)

Added functions in tokens to check whether a token leads with `+`. Used them when parsing to allow for token splitting of `+=` into `+` and `=`.
Fixes https://github.com/rust-lang/rust/issues/47856
Diffstat (limited to 'src/libsyntax/parse/lexer/mod.rs')
0 files changed, 0 insertions, 0 deletions