]> git.lizzy.rs Git - rust.git/commit
Tweak naming and ordering in `StringReader::bump()`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 3 May 2018 20:38:15 +0000 (06:38 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Sun, 13 May 2018 07:16:02 +0000 (17:16 +1000)
commitb1aae607c56d26333589dc45daa20859950bf6e1
tree5176bd1545845ef82e9d27fb88be013789e3514d
parent4465b2fbf3487e8f45e2eee4da187776574febec
Tweak naming and ordering in `StringReader::bump()`.

This patch removes the "old"/"new" names in favour of "foo"/"next_foo",
which matches the field names.

It also moves the setting of `self.{ch,pos,next_pos}` in the common case
to the end, so that the meaning of "foo"/"next_foo" is consistent until
the end.
src/libsyntax/parse/lexer/mod.rs