Skip to content

Store idents for DefPathData into crate metadata#70077

Merged
bors merged 2 commits intorust-lang:masterfrom
Aaron1011:feature/new-def-path-ident
Mar 24, 2020
Merged

Store idents for DefPathData into crate metadata#70077
bors merged 2 commits intorust-lang:masterfrom
Aaron1011:feature/new-def-path-ident

Conversation

@Aaron1011
Copy link
Contributor

Previously, we threw away the Span associated with a definition's
identifier when we encoded crate metadata, causing us to lose location
and hygiene information.

We now store the identifier's Span in a side table, which gets encoded
into the crate metadata. When we decode items from the metadata, we
combine the name and span back into an Ident.

This improves the output of several tests, which previously had messages
suppressed due to dummy spans.

This is a prerequisite for #68686, since throwing away a Span means
that we lose hygiene information.

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

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants