]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #79810 - Aaron1011:fix/def-path-table-gap, r=lcnr
authorTyler Mandry <tmandry@gmail.com>
Wed, 9 Dec 2020 21:38:25 +0000 (13:38 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 21:38:25 +0000 (13:38 -0800)
Account for gaps in def path table during decoding

When encoding a proc-macro crate, there may be gaps in the table (since
we only encode the crate root and proc-macro items). Account for this by
checking if the entry is present, rather than using `unwrap()`


Trivial merge