Skip to content

Remove Spans from HIR -- 1/N -- Span collection#72878

Closed
cjgillot wants to merge 10 commits intorust-lang:masterfrom
cjgillot:nospan-lowering
Closed

Remove Spans from HIR -- 1/N -- Span collection#72878
cjgillot wants to merge 10 commits intorust-lang:masterfrom
cjgillot:nospan-lowering

Conversation

@cjgillot
Copy link
Copy Markdown
Contributor

@cjgillot cjgillot commented Jun 1, 2020

First step in rust-lang/compiler-team#294
Split out of #72015

This PR collects the spans in the AST when lowering it to HIR.
This collection constructs a HirId -> Span map as each HirId is assigned.
This map is rendered accessible to the world through a query,
and replaces the implementation of tcx.hir().span(...).

This PR needs a perf run.

r? @pnkfelix

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-HIR Area: The high-level intermediate representation (HIR) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.