-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix persisted doctests on Windows / when using workspaces #79413
Conversation
When using the unstable `--persist-doctests` option, Windows path separators were not escaped properly. Also when running the command in a workspace, crate files can overwrite each other. Before: `src\lib_rs_1_0\rust_out` After: `\crate_a_src_lib_rs_1_0\rust_out`, `\crate_b_src_lib_rs_1_0\rust_out`
(rust-highfive has picked a reviewer for you, use r? to override) |
Since there is a little change in the naming, I'll ask for others to confirm they're fine with it. cc @jyn514 |
I'm a little confused - where is the name used currently? Is this just for build artifacts, or could some crate be depending on the name? |
Yes, basically its the directory name where the executables end up if you use |
Seems fine to me then. @bors r=GuillaumeGomez |
📌 Commit 1d587d8 has been approved by |
⌛ Testing commit 1d587d8 with merge 3e0ee17c0c67393a9ef1dde4c249f3a2be86c1f0... |
💔 Test failed - checks-actions |
@bors retry |
…as-schievink Rollup of 10 pull requests Successful merges: - rust-lang#77758 (suggest turbofish syntax for uninferred const arguments) - rust-lang#79000 (Move lev_distance to rustc_ast, make non-generic) - rust-lang#79362 (Lower patterns before using the bound variable) - rust-lang#79365 (Upgrades the coverage map to Version 4) - rust-lang#79402 (Fix typos) - rust-lang#79412 (Clean up rustdoc tests by removing unnecessary features) - rust-lang#79413 (Fix persisted doctests on Windows / when using workspaces) - rust-lang#79420 (Fixes a word typo in librustdoc) - rust-lang#79421 (Fix docs formatting for `thir::pattern::_match`) - rust-lang#79428 (Fixup compiler docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
When using the unstable
--persist-doctests
option,Windows path separators were not escaped properly. Also when running
the command in a workspace, crate files can overwrite each other.
Before:
src\lib_rs_1_0\rust_out
After:
\crate_a_src_lib_rs_1_0\rust_out
,\crate_b_src_lib_rs_1_0\rust_out