]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #9531 - 5225225:cargo-doc-open-fix, r=ehuss
authorbors <bors@rust-lang.org>
Thu, 1 Jul 2021 01:14:50 +0000 (01:14 +0000)
committerbors <bors@rust-lang.org>
Thu, 1 Jul 2021 01:14:50 +0000 (01:14 +0000)
Fix `BorrowMutError` when calling `cargo doc --open`

~~I'm not sure why the existing test suite didn't catch this, it definitely calls `cargo doc --open`.~~

I had

```toml
[doc.extern-map]
std = "local"
```

in my `.cargo/config.toml`. Will write a test case that sets that and then tries to run `cargo doc --open`.

Closes #9530

1  2 
tests/testsuite/doc.rs

Simple merge