about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-24 07:13:35 +0100
committerGitHub <noreply@github.com>2020-03-24 07:13:35 +0100
commitd626f5bc6631b1f694ab972c53316aebdae22842 (patch)
treef3d2b2f286ffb4ec0c0494f04429973710470747 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent3d8b9614d3aae6ef8bd877e3f020f7ac8ad7f7e0 (diff)
parent86b8dea5ecb10dd12f9e352e9f31ced88a16e5e8 (diff)
downloadrust-d626f5bc6631b1f694ab972c53316aebdae22842.tar.gz
rust-d626f5bc6631b1f694ab972c53316aebdae22842.zip
Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, 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 #68686, since throwing away a `Span` means
that we lose hygiene information.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions