]> git.lizzy.rs Git - rust.git/commit
Auto merge of #76658 - Aaron1011:fix/encode-dummy-loc-span, r=lcnr
authorbors <bors@rust-lang.org>
Sun, 13 Sep 2020 09:18:14 +0000 (09:18 +0000)
committerbors <bors@rust-lang.org>
Sun, 13 Sep 2020 09:18:14 +0000 (09:18 +0000)
commitb6c84553c4fa47174d2510541a90243000fb44d8
tree061e867b571c354b467b11bce0f45ebf0481b06a
parent4e48010b95ed1021677420a9c74d8fed2ce424d4
parenta67d248b13e8ac6f83df8994f59e7b89f064339e
Auto merge of #76658 - Aaron1011:fix/encode-dummy-loc-span, r=lcnr

Properly encode spans with a dummy location and non-root `SyntaxContext`

Previously, we would throw away the `SyntaxContext` of any span with a
dummy location during metadata encoding. This commit makes metadata Span
encoding consistent with incr-cache Span encoding - an 'invalid span'
tag is only used when it doesn't lose any information.