-
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
Remove impl Foo for .. {}
in favor auto trait Foo {}
#47416
Conversation
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 has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 2259877 has been approved by |
⌛ 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 }) |
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.
Wait, does this actually trigger any errors, at all?
EDIT: nevermind, it's in src/librustc_passes/ast_validation.rs
.
💔 Test failed - status-appveyor |
…henkov Remove `impl Foo for .. {}` in favor `auto trait Foo {}` Rebase of #46480 with restored parsing support.
☀️ Test successful - status-appveyor, status-travis |
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).
Rebase of #46480 with restored parsing support.