diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-31 00:27:13 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-31 12:16:42 +1100 |
| commit | 606f50c46dd9a3852d36456d2015e1ccf832642e (patch) | |
| tree | 1c992543bb91d02c72328b9021202a9fdcdba01a /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | f00264074fb8f7e3b603eb3469822813632a6d30 (diff) | |
| download | rust-606f50c46dd9a3852d36456d2015e1ccf832642e.tar.gz rust-606f50c46dd9a3852d36456d2015e1ccf832642e.zip | |
Lex binary and octal literals more eagerly.
Previously 0b12 was considered two tokens, 0b1 and 2, as 2 isn't a valid base 2 digit. This patch changes that to collapse them into one (and makes `0b12` etc. an error: 2 isn't a valid base 2 digit). This may break some macro invocations of macros with `tt` (or syntax extensions) that rely on adjacent digits being separate tokens and hence is a [breaking-change] The fix is to separate the tokens, e.g. `0b12` -> `0b1 2`. cc https://github.com/rust-lang/rfcs/pull/879
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
