about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-21 06:41:45 -0700
committerGitHub <noreply@github.com>2016-10-21 06:41:45 -0700
commit5509ae399e4ed6f041b95bf948751f35b7d65517 (patch)
treed692c77f98f64a456c1abe7d316d10e3d5788278 /src/test/run-pass/thinlto
parentda5b6467c33f7f86b4964b08b37726f7611a8f0c (diff)
parentfea630ef9d738aabaf6cbf3ccedb1bc1adae1e6d (diff)
downloadrust-5509ae399e4ed6f041b95bf948751f35b7d65517.tar.gz
rust-5509ae399e4ed6f041b95bf948751f35b7d65517.zip
Auto merge of #37290 - petrochenkov:pnp, r=jseyfried
syntax: Tweak path parsing logic

Associated paths starting with `<<` are parsed in patterns.

Paths like `self::foo::bar` are interpreted as paths and not as `self` arguments in methods (cc @matklad).
Now, I believe, *all* paths are consistently parsed greedily in case of ambiguity.
Detection of `&'a mut self::` requires pretty large (but still fixed) lookahead, so I had to increase the size of parser's lookahead buffer.
Curiously, if `lookahead_distance >= lookahead_buffer_size` was used previously, the parser hung forever, I fixed this as well, now it ICEs.

r? @jseyfried
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions