-
Couldn't load subscription status.
- Fork 13.9k
Closed
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-lowLow priorityLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
While rustc supports reading from STDIN if the fake path - (dash) is provided (a CLI convention), rustdoc does not.
This is definitely not something I need, it's merely an inconsistency between rustc and rustdoc I've noticed and that I'm recording here.
rustc Example
printf 'pub struct F;' | rustc - --crate-type=libCrate name: rust_out; virtual file path: <anon>.
Reproducer
printf 'pub struct F;' | rustdoc -Currently fails with:
error: couldn't read -: No such file or directory (os error 2)
Metadata
Metadata
Assignees
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.P-lowLow priorityLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.