Don't display mut in arguments for functions documentation#81831
Don't display mut in arguments for functions documentation#81831bors merged 3 commits intorust-lang:masterfrom
mut in arguments for functions documentation#81831Conversation
camelid
left a comment
There was a problem hiding this comment.
Can you re-add the tests that you removed?
|
Right now it will make rustdoc panic: https://github.com/rust-lang/rust/blob/95acccc32a090937bde0fbe087358721df888629/src/librustdoc/clean/utils.rs#L412-L415 Do you want me to fix this? |
|
Yes please, take a look at #80220 for suggestions on how. |
This reverts commit 31375d2.
src/librustdoc/clean/utils.rs
Outdated
There was a problem hiding this comment.
Btw, shouldn't this just panic? The case for () is handled through PatKind::Tuple
There was a problem hiding this comment.
Where is this warn! macro even coming from?
There was a problem hiding this comment.
It probably should panic, but let's do that in a different PR so we can fix the regression.
95acccc to
f8ce972
Compare
|
I took the easy route and replaced the range pattern with |
This comment has been minimized.
This comment has been minimized.
f8ce972 to
0a4c0e3
Compare
|
CI is passing now |
src/librustdoc/clean/utils.rs
Outdated
There was a problem hiding this comment.
It probably should panic, but let's do that in a different PR so we can fix the regression.
0a4c0e3 to
1429d80
Compare
This comment has been minimized.
This comment has been minimized.
1429d80 to
089ee27
Compare
|
Will hopefully get to this tomorrow. |
|
Beta-nominating since this bug is now on beta. |
|
Actually I have time now! @bors r+ |
|
📌 Commit 089ee27 has been approved by |
|
Backporting sounds good to me - @rust-lang/rustdoc what do you think? |
|
Note that beta only branched a few days ago, so it's just because it landed a few days late. |
|
Backport sgtm |
…melid Don't display `mut` in arguments for functions documentation Fixes rust-lang#81289 by reverting rust-lang#80799, as requested in rust-lang#81328 (comment). Supersedes rust-lang#81328. r? `@camelid` cc `@jyn514`
|
Sounds good to m as well. |
Rollup of 16 pull requests Successful merges: - rust-lang#79983 (fix indefinite article in cell.rs) - rust-lang#81831 (Don't display `mut` in arguments for functions documentation) - rust-lang#81947 (Relax ItemCtxt::to_ty lifetime) - rust-lang#81954 (RELEASES.md 1.50: Group platform support notes together) - rust-lang#81955 (bootstrap: Locate llvm-dwp based on llvm-config bindir) - rust-lang#81959 (Fix assosiated typo) - rust-lang#81964 (Fix documentation not showing on localStorage error) - rust-lang#81968 (bootstrap: fix wrong docs installation path) - rust-lang#81990 (Make suggestion of changing mutability of arguments broader) - rust-lang#81994 (Improve long explanation for E0542 and E0546) - rust-lang#81997 (dist: include src/build_helper as part of the crate graph for rustc-dev) - rust-lang#82003 (Stack probes: fix error message) - rust-lang#82004 (clean up clean::Static struct) - rust-lang#82011 (Fix private intra-doc warnings on associated items) - rust-lang#82013 (Tell user how to fix CI file being not up to date) - rust-lang#82017 (Fix typo in mod.rs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
|
Awesome, that's more than half the team so I'm going to go ahead and mark this as accepted. |
…ulacrum [beta] backports This backports some PRs and bumps to the released stable compiler: * bootstrap: fix wrong docs installation path rust-lang#81968 * parser: Fix panic in 'const impl' recovery rust-lang#81876 * Don't display `mut` in arguments for functions documentation rust-lang#81831 r? `@Mark-Simulacrum`
Fixes #81289 by reverting #80799, as requested in #81328 (comment).
Supersedes #81328.
r? @camelid cc @jyn514