ci(miri): run doctests under Miri#23259
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
Re-enables running Rust doctests under Miri in CI, and adjusts a long-running allocator documentation example so it won’t be executed as a doctest.
Changes:
- Update Miri CI workflows to run
cargo miri testwithout omitting doctests. - Mark a long-running
Allocatordocumentation example asno_runto avoid executing it during doctests. - Minor workflow comment cleanup.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| crates/oxc_allocator/src/allocator.rs | Marks the long-running doc example as no_run and adds a hidden explanatory comment. |
| .github/workflows/miri.yml | Changes Miri invocation to include doctests (and now also default targets like examples). |
| .github/workflows/miri-windows.yml | Same Miri target-selection change for the Windows Miri job. |
9e31299 to
32b4b51
Compare
0e3af3e to
437a564
Compare
Merge activity
|
Running Miri on doctests was disabled in #11092. Unclear what oddity in the version of Rust nightly we were running at the time caused it not to work, but it now seems to be fixed, so we can re-enable the doctests now. This is what caught the memory leaks in doc comment examples which were fixed in #23257.
437a564 to
b77ca6f
Compare
32b4b51 to
79cd905
Compare
Running Miri on doctests was disabled in #11092. Unclear what oddity in the version of Rust nightly we were running at the time caused it not to work, but it now seems to be fixed, so we can re-enable the doctests now. This is what caught the memory leaks in doc comment examples which were fixed in #23257.

Running Miri on doctests was disabled in #11092. Unclear what oddity in the version of Rust nightly we were running at the time caused it not to work, but it now seems to be fixed, so we can re-enable the doctests now.
This is what caught the memory leaks in doc comment examples which were fixed in #23257.