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

const_generics_defaults: don't ICE in the unimplemented parts #80599

Merged
merged 1 commit into from
Jan 2, 2021

Conversation

lqd
Copy link
Member

@lqd lqd commented Jan 1, 2021

The thought was that we could use todo!s to ensure we wouldn't forget to implement parts of the experimental gate.

However, that can also lead to a suboptimal experience for users as shown in #80589 having both the error/warning about the experimental feature, and the ICE.

Fixes #80589

r? @varkor

So that at least it won't ICE for users whether or not they enable the gate. For developers the FIXMEs are enough.
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 1, 2021
@lqd
Copy link
Member Author

lqd commented Jan 1, 2021

This is very much safe to rollup:
@bors rollup=always

@varkor
Copy link
Member

varkor commented Jan 1, 2021

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 1, 2021

📌 Commit ea0f639 has been approved by varkor

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 1, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2021
Rollup of 6 pull requests

Successful merges:

 - rust-lang#80546 (clippy fixes for librustdoc)
 - rust-lang#80555 (Improve library tracking issue template)
 - rust-lang#80574 (Clean bootstrap artifacts on `x.py clean`)
 - rust-lang#80578 (improve unconditional_panic description)
 - rust-lang#80599 (`const_generics_defaults`: don't ICE in the unimplemented parts)
 - rust-lang#80613 (Diag: print enum variant instead of enum type)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7a1b01e into rust-lang:master Jan 2, 2021
@rustbot rustbot added this to the 1.51.0 milestone Jan 2, 2021
@lqd lqd deleted the issue_805889 branch January 2, 2021 22:56
@lcnr lcnr added the A-const-generics Area: const generics (parameters and arguments) label Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) 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.

ICE: min const gen default_function_param.rs with -Zsave-analysis; hit a todo!()
6 participants