Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run doctests for unstable APIs (tokio-rs#4562)
It turns out that the CI job for testing `tokio_unstable` features isn't actually running doctests for `tokio_unstable`, just lib and integration tests. This is because RustDoc is responsible for running doctests, and it needs the unstable cfg passed to it separately from `RUSTFLAGS`. This means that if the examples for unstable APIs are broken, CI won't catch this, which is not great! This commit changes the `test-unstable` CI job to pass `--cfg tokio_unstable` in `RUSTDOCFLAGS` as well as `RUSTFLAGS`. This way, doctests for unstable APIs should actually run. I also fixed a typo in one of the runtime metrics doctests that was causing a compilation error, which was caught as a result of actually testing the unstable API docs on CI. :) Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information