]> git.lizzy.rs Git - rust.git/commit
Auto merge of #91149 - notriddle:notriddle/rustdoc-doctest-semicolon, r=jyn514
authorbors <bors@rust-lang.org>
Tue, 23 Nov 2021 23:48:55 +0000 (23:48 +0000)
committerbors <bors@rust-lang.org>
Tue, 23 Nov 2021 23:48:55 +0000 (23:48 +0000)
commitde4b242e1e2143f549f25ac5a8f7de9d902ef3b4
tree011f18a57df9b2b571789a02744627597c7939ce
parent65c55bf931a55e6b1e5ed14ad8623814a7386424
parent1e21dfa33a5ff3bc369844f6f50e53b63358e340
Auto merge of #91149 - notriddle:notriddle/rustdoc-doctest-semicolon, r=jyn514

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