-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc documents mut self
as mut self: Self
#81289
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Milestone
Comments
I'd like to investigate this :) |
This also affects fn bar(mut foo) {} Where
|
So a few observations:
|
I see two path to solving this bug:
cc @jyn514 what do you think? |
I would prefer to go for 1, there's no reason to have two completely different functions for pretty-printing. |
Assigning |
LeSeulArtichaut
added a commit
to LeSeulArtichaut/rust
that referenced
this issue
Feb 10, 2021
(now a beta regression) |
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Feb 12, 2021
…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`
Mark-Simulacrum
pushed a commit
to Mark-Simulacrum/rust
that referenced
this issue
Feb 13, 2021
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Rustdoc on nightly documents methods have signature of

fn(mut self)
asfn(mut self: Self)
while it only has to document it asfn(self)
.On rustdoc stable, things are normal:

Meta
rustc --version --verbose
: Version 1.49.0 (e1884a8 2020-12-29)The text was updated successfully, but these errors were encountered: