-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustdoc: fix min_const_generics with ty::Param #76297
Conversation
// `const_eval_poly` tries to to first substitute generic parameters which | ||
// results in an ICE while manually constructing the constant and using `eval` |
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.
Maybe this should also fix the ICE to return an error?
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.
The underlying ICE in const_eval_poly
can't really be fixed. It is a weird sideeffect of how min_const_generics
works.
It might make sense to check for ConstKind::Param
in const_eval_raw
but I personally don't think that that would be a cleaner solution 🤔
@bors r+ rollup |
📌 Commit ccf1f58 has been approved by |
⌛ Testing commit ccf1f58 with merge 67d6720668a1a2464364994e8c94791a49ee16db... |
💔 Test failed - checks-actions |
|
Cc @oli-obk (seems like an interesting case where |
Rollup of 7 pull requests Successful merges: - rust-lang#76114 (Add saturating methods for `Duration`) - rust-lang#76297 (rustdoc: fix min_const_generics with ty::Param) - rust-lang#76484 (Add MaybeUninit::assume_init_drop.) - rust-lang#76530 (Eliminate mut reference UB in Drop impl for Rc<T>) - rust-lang#76583 (Update `std::os` module documentation.) - rust-lang#76599 (Finish off revisions for const generics UI tests.) - rust-lang#76615 (Add missing examples on binary core traits) Failed merges: r? `@ghost`
fixes #75913
r? @varkor cc @jyn514