]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #71322 - petrochenkov:tuple00, r=nikomatsakis
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 11 Jul 2020 06:26:22 +0000 (23:26 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2020 06:26:22 +0000 (23:26 -0700)
commitec1e7e9dbc83e57da7809cfc32c01e881b42555b
treeda8a4d60b718bf7f476ce2cfb875bc7dbaaee4e5
parentdaecab3a784f28082df90cebb204998051f3557d
parent52bdaaa0edb2824af1610b67664f06580335fd78
Rollup merge of #71322 - petrochenkov:tuple00, r=nikomatsakis

Accept tuple.0.0 as tuple indexing (take 2)

If we expect something identifier-like when parsing a field name after `.`, but encounter a float token, we break that float token into parts, similarly to how we break `&&` into `&` `&`, or `<<` into `<` `<`, etc.

An alternative to https://github.com/rust-lang/rust/pull/70420.