-
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
Fix feature = "nightly"
in the new trait solver
#126649
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
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.
r=me after nits :(
// FIXME: let_chains | ||
let kind = kind_ty.to_opt_closure_kind(); | ||
let coroutine_ty = if kind.is_some() && !args.tupled_upvars_ty().is_ty_var() { | ||
let closure_kind = kind.unwrap(); |
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.
// FIXME: let_chains | |
let kind = kind_ty.to_opt_closure_kind(); | |
let coroutine_ty = if kind.is_some() && !args.tupled_upvars_ty().is_ty_var() { | |
let closure_kind = kind.unwrap(); | |
let coroutine_ty = if let Some(kind) = kind_ty.to_opt_closure_kind().filter(|_| !args.tupled_upvars_ty().is_ty_var()) { |
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.
I feel like this is so much harder to read. I'd really rather unwrap, or restructure the whole block to just be nested if
s.
|
||
// FIXME: let_chains | ||
let kind = kind_ty.to_opt_closure_kind(); | ||
let coroutine_ty = if kind.is_some() && !args.tupled_upvars_ty().is_ty_var() { |
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.
same here
@bors r+ rollup |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#126620 (Actually taint InferCtxt when a fulfillment error is emitted) - rust-lang#126649 (Fix `feature = "nightly"` in the new trait solver) - rust-lang#126652 (Clarify that anonymous consts still do introduce a new scope) - rust-lang#126703 (reword the hint::blackbox non-guarantees) - rust-lang#126708 (Minimize `can_begin_literal_maybe_minus` usage) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#126649 - compiler-errors:nightly, r=lcnr Fix `feature = "nightly"` in the new trait solver r? lcnr
r? lcnr