about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/doc-examples.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-08-04 04:53:28 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-08-04 04:53:28 -0400
commit955aebf529787fd49b05f07346e3de97da31cb09 (patch)
tree1a571abe3a63eebc224512172f6d9b4b8427134c /src/test/rustdoc-ui/coverage/doc-examples.rs
parent40857b9453a80801fc51b606b0d7532efedad42b (diff)
downloadrust-955aebf529787fd49b05f07346e3de97da31cb09.tar.gz
rust-955aebf529787fd49b05f07346e3de97da31cb09.zip
Don't serialize ExpnData for foreign crates
When we encode an ExpnId into the crate metadata, we write out the
CrateNum of the crate that 'owns' the corresponding `ExpnData`, which
is later used to decode the `ExpnData` from its owning crate.

However, we current serialize the `ExpnData` for all `ExpnIds` that we
serialize, even if the `ExpnData` was already serialized into a foreign
crate. This commit skips encoding this kind of `ExpnData`, which should
hopefully speed up metadata encoding and reduce the total metadata size.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions