-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Don't ICE when computing a layout of a generator tainted by errors #81008
Conversation
Fixes #80998, presumably |
Thanks! @bors r+ rollup |
📌 Commit 5ea1d0e has been approved by |
…ndry Don't ICE when computing a layout of a generator tainted by errors Fixes rust-lang#80998.
|
||
type F = impl Future; | ||
// Check that statics are inhabited computes they layout. | ||
static POOL: Task<F> = Task::new(); |
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.
there should be a second error here, that Task::new
isn't const and therefore can't be used in a static expression, right?
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.
This check is skipped if there are type errors, so it will only appear only after resolving the first error.
Rollup of 5 pull requests Successful merges: - rust-lang#80254 (Don't try to add nested predicate to Rustdoc auto-trait `ParamEnv`) - rust-lang#80834 (Remove unreachable panics from VecDeque::{front/back}[_mut]) - rust-lang#80944 (Use Option::map_or instead of `.map(..).unwrap_or(..)`) - rust-lang#81008 (Don't ICE when computing a layout of a generator tainted by errors) - rust-lang#81023 (Remove doctree::Variant) Failed merges: - rust-lang#81033 (Remove useless `clean::Variant` struct) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #80998.