about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/expr.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-09-17 21:27:26 -0700
committerGitHub <noreply@github.com>2019-09-17 21:27:26 -0700
commit76d34f343508e7009c8c3ee40819c8d5031b6d50 (patch)
tree472f37ba762da52367a989cd9f61668db4e239e8 /src/libsyntax/parse/parser/expr.rs
parentb2501a1269b4bccf454556736b8433979df43835 (diff)
parent3daa8bd2e473c80e71b036786fa15729960562af (diff)
downloadrust-76d34f343508e7009c8c3ee40819c8d5031b6d50.tar.gz
rust-76d34f343508e7009c8c3ee40819c8d5031b6d50.zip
Rollup merge of #64528 - Aaron1011:fix/proc-macro-type, r=alexcrichton
Load proc macro metadata in the correct order.

Serialized proc macro metadata is assumed to have a one-to-one
correspondence with the entries in static array generated by proc_macro_harness.
However, we were previously serializing proc macro metadata in a
different order than proc macros were laied out in the static array.
This lead to us associating the wrong data with a proc macro when
generating documentation, causing Rustdoc to generate incorrect docs for
proc macros.

This commit keeps track of the order in which we insert proc macros into
the generated static array. We use this same order when serializing proc
macro metadata, ensuring that we can later associate the metadata for a
proc macro with its entry in the static array.

Fixes #64251
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions