]> git.lizzy.rs Git - rust.git/commit
Auto merge of #25171 - quantheory:associated_time_long_paths, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 12 May 2015 13:04:14 +0000 (13:04 +0000)
committerbors <bors@rust-lang.org>
Tue, 12 May 2015 13:04:14 +0000 (13:04 +0000)
commit0ad202671fc031ee90133fa5849ef0ec31164e04
treeaf36d232f138a45b160a67a6bc762059ea7b3619
parent67dfc177f3c3236a73c7273dd0bf8be80bf1f5b0
parentefb3872a49df2d4ffe5bdc948d1d12637fa3ebd1
Auto merge of #25171 - quantheory:associated_time_long_paths, r=nikomatsakis

It is currently broken to use syntax such as `<T as Foo>::U::static_method()` where `<T as Foo>::U` is an associated type. I was able to fix this and simplify the parser a bit at the same time.

This also fixes the corresponding issue with associated types (#22139), but that's somewhat irrelevant because #22519 is still open, so this syntax still causes an error in type checking.

Similarly, although this fix applies to associated consts, #25046 forbids associated constants from using type parameters or `Self`, while #19559 means that associated types have to always have one of those two. Therefore, I think that you can't use an associated const from an associated type anyway.
src/libsyntax/parse/parser.rs