about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorKang Seonghoon <public+git@mearie.org>2014-04-27 05:08:36 +0900
committerKang Seonghoon <public+git@mearie.org>2014-04-27 19:54:31 +0900
commitc8a29c4c595e76b71372a2e40d359ac1ddd8aec8 (patch)
treecf3ba42bf9a069a105819f9dd0aac91b876cfe0f /src/rustllvm/PassWrapper.cpp
parentdee21a67b802ba9d8a0fac11369cbcd53552a216 (diff)
downloadrust-c8a29c4c595e76b71372a2e40d359ac1ddd8aec8.tar.gz
rust-c8a29c4c595e76b71372a2e40d359ac1ddd8aec8.zip
rustdoc: External module item links to the module contents. Fixes #12926.
the basic strategy is to distinguish `mod foo;` from `mod foo {...}`
by checking if the span for the module item and module contents is
in different files. if it's the case, we prefer module contents.

it is technically possible to fix #12926 without changing the AST,
probably by checking the individual items' span. this is not without
a problem though, since it is possible that some items inside
`mod foo {...}` may have originated from other file (e.g. `include!`).
therefore it is better to record both spans explicitly.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions