about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2023-05-25 13:39:10 -0500
committerjyn <github@jyn.dev>2023-05-29 13:26:44 -0500
commit58e18ddf86e67a1210a60ab4a0ad5e1adfbbc819 (patch)
tree42c48cb6d8290ba8f4a6b304660480926208c8b0 /tests/rustdoc-js-std/parser-errors.js
parentcb4b7f631980e6f78a486be46ec653ad322ce12e (diff)
downloadrust-58e18ddf86e67a1210a60ab4a0ad5e1adfbbc819.tar.gz
rust-58e18ddf86e67a1210a60ab4a0ad5e1adfbbc819.zip
Switch doc::{Std, Rustc} to `crate_or_deps`
Previously they were using `all_krates` and various hacks to determine
which crates to document. Switch them to `crate_or_deps` so `ShouldRun`
tells them which crate to document instead of having to guess.

This also makes a few other refactors:
- Remove the now unused `all_krates`; new code should only use
  `crate_or_deps`.
- Add tests for documenting Std
- Remove the unnecessary `run_cargo_rustdoc_for` closure so that we only
  run cargo once
- Give a more helpful error message when documenting a no_std target
- Use `builder.msg` in the Steps instead of `builder.info`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions