-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Removal pass for anonymous parameters #41693
Conversation
Removes occurences of anonymous parameters from the rustc codebase, as they are to be deprecated. See issue rust-lang#41686 and RFC 1685.
r? @eddyb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me modulo nits
src/libcore/convert.rs
Outdated
@@ -276,7 +276,7 @@ pub trait Into<T>: Sized { | |||
pub trait From<T>: Sized { | |||
/// Performs the conversion. | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
fn from(T) -> Self; | |||
fn from(t: T) -> Self; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO t
is unidiomatic. I personally prefer x
. Or _
like you used elsewhere.
src/librustdoc/html/highlight.rs
Outdated
fn string<T: Display>(&mut self, | ||
text: T, | ||
klass: Class, | ||
tas: Option<&TokenAndSpan>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tok
or token
feel better suited IMO.
@bors r+ |
📌 Commit 14bbd0a has been approved by |
Removal pass for anonymous parameters Removes occurences of anonymous parameters from the rustc codebase, as they are to be deprecated. See issue rust-lang#41686 and RFC 1685. r? @frewsxcv
Removes occurences of anonymous parameters from the
rustc codebase, as they are to be deprecated.
See issue #41686 and RFC 1685.
r? @frewsxcv