mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
de4b242e1e
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |