1
Fork 0

Support parenthesized paths Foo(A,B) -> C that expand to Foo<(A,B),C>. These paths also bind anonymous regions (or will, once HRTB is fully working).

Fixes #18423.
This commit is contained in:
Niko Matsakis 2014-11-03 21:52:52 -05:00
parent 4e352892c8
commit 221edbae38
38 changed files with 841 additions and 264 deletions

View file

@ -453,8 +453,7 @@ fn path_node(ids: Vec<ast::Ident> ) -> ast::Path {
global: false,
segments: ids.into_iter().map(|identifier| ast::PathSegment {
identifier: identifier,
lifetimes: Vec::new(),
types: OwnedSlice::empty(),
parameters: ast::PathParameters::none(),
}).collect()
}
}