rustdoc: doctests with a manual crate_name attribute cannot run #57317
Labels
A-doctests
Area: Documentation tests, run by rustdoc
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Based on investigation in rust-lang/rust-by-example#1137 (comment), rustdoc hardcodes the name of the doctest executable to run, but manually setting a
#![crate_name]
attribute changes the name of this executable. This causes the above error, because rustdoc is trying to run the wrong executable.The text was updated successfully, but these errors were encountered: