-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[WIP] rustc: check that type alias where clauses are well-formed. #54352
Conversation
@bors try |
⌛ Trying commit 62f3343 with merge 135b4cd023a753409d01e43b0f23d22a899feeeb... |
☀️ Test successful - status-travis |
@craterbot run start=master#1e21c9a297a9fe668d62887a3a6a4add8e717b17 end=try#135b4cd023a753409d01e43b0f23d22a899feeeb mode=check-only |
@craterbot run start=master#1e21c9a297a9fe668d62887a3a6a4add8e717b17 end=try#135b4cd023a753409d01e43b0f23d22a899feeeb mode=check-only |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
discussed at T-compiler meeting Here is how I summarized the conclusion: We can do future-compat warning now, and potentially change edition-2015 behavior in a future release. And we make it hard error for edtion-2018, as planned |
Ping from triage @eddyb: What is the status of this PR? |
I'm going to close this PR for now. I do plan to start opening some PRs and issuing warnings, per the plan discussed in #55222 |
Unlike #54033 (comment) / #49441 (comment), I suspect that "where clauses well-formedness" holds much more commonly than "enough bounds for the aliased type" (as the latter is by omission).
What that means is that the bounds themselves, and type parameter defaults, are checked.
TODO: provide proper examples and tests.
I'm primarily opening this PR to do a crater run, hoping for 0 regressions. If the number of regressions is non-0 but small, I'll include it in #54090, as that PR is likely wrong for non-WF bounds.
r? @nikomatsakis cc @Centril