Skip to content
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

Merged
merged 2 commits into from
May 2, 2017
Merged

Conversation

est31
Copy link
Member

@est31 est31 commented May 2, 2017

Removes occurences of anonymous parameters from the
rustc codebase, as they are to be deprecated.

See issue #41686 and RFC 1685.

r? @frewsxcv

Removes occurences of anonymous parameters from the
rustc codebase, as they are to be deprecated.

See issue rust-lang#41686 and RFC 1685.
@est31
Copy link
Member Author

est31 commented May 2, 2017

r? @eddyb

@rust-highfive rust-highfive assigned eddyb and unassigned frewsxcv May 2, 2017
Copy link
Member

@eddyb eddyb left a 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

@@ -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;
Copy link
Member

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.

fn string<T: Display>(&mut self,
text: T,
klass: Class,
tas: Option<&TokenAndSpan>)
Copy link
Member

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.

@eddyb
Copy link
Member

eddyb commented May 2, 2017

@bors r+

@bors
Copy link
Contributor

bors commented May 2, 2017

📌 Commit 14bbd0a has been approved by eddyb

@arielb1 arielb1 added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label May 2, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request May 2, 2017
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
bors added a commit that referenced this pull request May 2, 2017
Rollup of 6 pull requests

- Successful merges: #41661, #41662, #41673, #41688, #41692, #41693
- Failed merges:
@bors bors merged commit 14bbd0a into rust-lang:master May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants