Uh oh!
There was an error while loading. Please reload this page.
handle consts with param/infer in const_eval_resolve better - #99618
Conversation
rustbot
commented
Jul 22, 2022
Some changes occurred in const_evaluatable.rs cc @lcnr Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lcnr
commented
Jul 25, 2022
2 nits, then r=me thanks ❤️ |
compiler-errors
commented
Jul 26, 2022
@lcnr can you take one last look at this? addressed the nits in the last commit, but I didn't know what to do when we had a |
There was a problem hiding this comment.
that should be unreachable, so you should be able to bug! there
inference variables in the type of ty::Const is something we can't deal with right now, so if we encounter them either:
- something went wrong and we should ICE
- my understanding of const generics is flawed, so i also want to know about that
compiler-errors
commented
Jul 26, 2022
@bors r=lcnr |
bors
commented
Jul 26, 2022
handle consts with param/infer in `const_eval_resolve` better This PR addresses [this thread here](rust-lang#99449 (comment)). Was this the change you were looking for `@lcnr?` Interestingly, one test has begun to pass. Was that expected? r? `@lcnr`
Rollup of 5 pull requests Successful merges: - rust-lang#99618 (handle consts with param/infer in `const_eval_resolve` better) - rust-lang#99666 (Restore `Opaque` behavior to coherence check) - rust-lang#99692 (interpret, ptr_offset_from: refactor and test too-far-apart check) - rust-lang#99739 (Remove erroneous E0133 code from an error message.) - rust-lang#99748 (Use full type name instead of just saying `impl Trait` in "captures lifetime" error) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This PR addresses this thread here. Was this the change you were looking for @lcnr?
Interestingly, one test has begun to pass. Was that expected?
r? @lcnr