-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 BorrowMutError
when calling cargo doc --open
#9531
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for opening the PR! Let me know if you have any questions on how to add a test. There's some documentation in the contributor guide for running and writing tests, and the |
I can't seem to get the test to use I'm assuming that it's not used if the cargo version is stable, but I am calling Can someone who's more familiar with the codebase than I help me out here, because I'm lost as to why this test isn't working. |
Okay, the test looks to be running fine, and I've tested that the test actually works (fails when it's meant to) by checking out the |
Thanks! @bors r+ |
📌 Commit 950c415 has been approved by |
☀️ Test successful - checks-actions |
Update cargo 9 commits in 9233aa06c801801cff75df65df718d70905a235e..4952979031e2cf1d901c817a32e25a156a19db4c 2021-06-22 21:32:55 +0000 to 2021-07-01 01:14:50 +0000 - Fix `BorrowMutError` when calling `cargo doc --open` (rust-lang/cargo#9531) - Exclude `target` from content-indexing on Windows (rust-lang/cargo#9635) - Temporarily ignore 2021 edition fix. (rust-lang/cargo#9642) - Temporarily disable future_incompat tests. (rust-lang/cargo#9638) - Include toolchain specification in error message (rust-lang/cargo#9625) - Error when packaging with git dependencies without version (rust-lang/cargo#9612) - simply 'if' block (rust-lang/cargo#9615) - tidy some closures and iterators (rust-lang/cargo#9614) - use 'writeln' instead of appending newline character (rust-lang/cargo#9620)
I'm not sure why the existing test suite didn't catch this, it definitely callscargo doc --open
.I had
in my
.cargo/config.toml
. Will write a test case that sets that and then tries to runcargo doc --open
.Closes #9530