Uh oh!
There was an error while loading. Please reload this page.
Store idents for DefPathData into crate metadata - #70077
Conversation
rust-highfive
commented
Mar 17, 2020
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Aaron1011
commented
Mar 18, 2020
@petrochenkov: Did you want to do a perf run for this? |
DefPathData in a side tableDefPathData into crate metadata
This comment has been minimized.
This comment has been minimized.
50d5890 to
3760e40Comparepetrochenkov
commented
Mar 19, 2020
@Aaron1011 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
3760e40 to
b442340CompareAaron1011
commented
Mar 19, 2020
@petrochenkov: I've addressed your comments. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Mar 19, 2020
An accidental submodule update breaks CI. |
e7d4cae to
35fb1cbCompareAaron1011
commented
Mar 20, 2020
@petrochenkov: Updated. If this looks good to you, I'll squash the commits. |
petrochenkov
commented
Mar 20, 2020
@bors try @rust-timer queue |
…t, r=petrochenkov Store idents for `DefPathData` into crate metadata 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 rust-lang#68686, since throwing away a `Span` means that we lose hygiene information.
Centril
commented
Mar 23, 2020
Failed in #70288 (comment), @bors r- |
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 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 rust-lang#68686, since throwing away a `Span` means that we lose hygiene information.
Aaron1011
commented
Mar 23, 2020
This appears to be another instance of #53081: apparently, there are platform-specific issues with printing sysroot spans, which is causing some platforms to not print the output expected by the tests. |
1f13a4f to
86b8deaCompareAaron1011
commented
Mar 23, 2020
@petrochenkov: I've ignored the failing tests on the relevant platforms. It's unfortunate that this is required, but I'd prefer not to block this PR on resolving #53081. |
petrochenkov
commented
Mar 23, 2020
@bors r+ |
bors
commented
Mar 23, 2020
📌 Commit 86b8dea has been approved by |
…t, r=petrochenkov Store idents for `DefPathData` into crate metadata 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 rust-lang#68686, since throwing away a `Span` means that we lose hygiene information.
…t, r=petrochenkov Store idents for `DefPathData` into crate metadata 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 rust-lang#68686, since throwing away a `Span` means that we lose hygiene information.
Rollup of 8 pull requests Successful merges: - rust-lang#68884 (Make the `type_of` return a generic type for generators) - rust-lang#69788 (Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book) - rust-lang#70074 (Expand: nix all fatal errors) - rust-lang#70077 (Store idents for `DefPathData` into crate metadata) - rust-lang#70213 (traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet).) - rust-lang#70259 (Use Reveal::All in MIR optimizations) - rust-lang#70284 (correctly handle const params in type_of) - rust-lang#70289 (Refactor `codegen`) Failed merges: r? @ghost
Previously, we threw away the
Spanassociated with a definition'sidentifier when we encoded crate metadata, causing us to lose location
and hygiene information.
We now store the identifier's
Spanin a side table, which gets encodedinto 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
Spanmeansthat we lose hygiene information.