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

Remove impl Foo for .. {} in favor auto trait Foo {} #47416

Merged
merged 8 commits into from
Jan 14, 2018

Conversation

petrochenkov
Copy link
Contributor

Rebase of #46480 with restored parsing support.

leoyvens and others added 8 commits January 13, 2018 18:48
No longer parse it.
Remove AutoTrait variant from AST and HIR.
Remove backwards compatibility lint.
Remove coherence checks, they make no sense for the new syntax.
Remove from rustdoc.
The WF checks are now done as an AST validation.
`fn check_impl` was feeling lonely with a file all for itself.
Also refactored parsing auto traits.
@rust-highfive
Copy link
Collaborator

r? @michaelwoerister

(rust_highfive has picked a reviewer for you, use r? to override)

@petrochenkov
Copy link
Contributor Author

@bors r+

@bors
Copy link
Contributor

bors commented Jan 13, 2018

📌 Commit 2259877 has been approved by petrochenkov

@petrochenkov
Copy link
Contributor Author

#46480 is an old PR and should be at the top of the queue already.
@bors p=1

@bors
Copy link
Contributor

bors commented Jan 13, 2018

⌛ Testing commit 2259877 with merge 83933abf871db52564d7d60790f6e9d0188c0de6...

ty = self.parse_ty()?;
if opt_trait.is_some() {
ty = if self.eat(&token::DotDot) {
P(Ty { node: TyKind::Err, span: self.prev_span, id: ast::DUMMY_NODE_ID })
Copy link
Member

@eddyb eddyb Jan 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, does this actually trigger any errors, at all?

EDIT: nevermind, it's in src/librustc_passes/ast_validation.rs.

@bors
Copy link
Contributor

bors commented Jan 13, 2018

💔 Test failed - status-appveyor

@petrochenkov
Copy link
Contributor Author

Appveyor timeout :( #46903
@bors retry

@bors
Copy link
Contributor

bors commented Jan 13, 2018

⌛ Testing commit 2259877 with merge cf4c3cb...

bors added a commit that referenced this pull request Jan 13, 2018
…henkov

Remove `impl Foo for .. {}` in favor `auto trait Foo {}`

Rebase of #46480 with restored parsing support.
@bors
Copy link
Contributor

bors commented Jan 14, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: petrochenkov
Pushing cf4c3cb to master...

@bors bors merged commit 2259877 into rust-lang:master Jan 14, 2018
kennytm-githubbot added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Jan 14, 2018
Tested on commit rust-lang/rust@cf4c3cb.

💔 rls on windows: test-pass → build-fail (cc @nrc).
💔 rls on linux: test-pass → build-fail (cc @nrc).
💔 rustfmt on windows: test-pass → build-fail (cc @nrc).
💔 rustfmt on linux: test-pass → build-fail (cc @nrc).
@petrochenkov petrochenkov deleted the remove-impl-for-dot-dot branch June 5, 2019 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants