about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2021-11-22 19:47:58 -0700
committerMichael Howell <michael@notriddle.com>2021-11-22 19:47:58 -0700
commitbff1645bdbe82157b90907239ef651f4b8d41f84 (patch)
treef015a66fb4d735e722180a3828a72f70c22b494d /compiler/rustc_codegen_gcc
parent214ad2f5b5ff529548ce13dabcda8d5841df0bd7 (diff)
downloadrust-bff1645bdbe82157b90907239ef651f4b8d41f84.tar.gz
rust-bff1645bdbe82157b90907239ef651f4b8d41f84.zip
fix(doctest): detect extern crate items in statement doctests
This partially reverts #91026, because rustdoc needs to detect the extern statements,
even when they appear inside implicit `main()`. It does not entirely revert it,
so the old bug is still fixed, by duplicating some of the logic from `parse_mod`
instead of trying to use it directly.

Fixes #91134
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions