Stream: t-compiler/rust-analyzer

Topic: Parse an isolated Path

Zac Pullar-Strecker (Jun 30 2020 at 02:34, on Zulip):

As part of #503 I need to parse an isolated Path from doc comments.
What should the API look like, should it just be Path::parse(src: &str) -> Self?
Alternatively should it be on ModPath, parsing names then using ModPath::from_segments?

David Lattimore (Jun 30 2020 at 06:11, on Zulip):

Do you mean for ast::Path or the HIR Path? If ast, I implemented a parse method in

Zac Pullar-Strecker (Jun 30 2020 at 06:21, on Zulip):

Oh perfect! This is the second time I've asked for something and found someone implemented it recently. I guess I should watch the commit log more :).

Last update: Jul 26 2021 at 13:30UTC