Create abstraction over paths for use in librustc_resolve #50258
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently, librustc_resolve passes around paths as
&[Ident]
.Ideally, we'd have an abstraction over paths that:
::foo
)Currently the last two are kinda compressed into an
Option<NodeId>
argument toresolve_path
-- when it's speculative, the Option is None.Having a
Path
abstraction would be nice.The text was updated successfully, but these errors were encountered: