Uh oh!
There was an error while loading. Please reload this page.
Separate AnonConst from ConstBlock in HIR. - #109609
Conversation
rustbot
commented
Mar 25, 2023
r? @lcnr (rustbot has picked a reviewer for you, use r? to override) |
rustbot
commented
Mar 25, 2023
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
There was a problem hiding this comment.
Do we still need the above visit_anon_const if const blocks should be handled in visit_inline_const instead?
There was a problem hiding this comment.
Yes. You still want to mark three as live in:
matchS::<3>{S::<{three()}> => {}}BoxyUwU
commented
Mar 30, 2023
r? @BoxyUwU |
bors
commented
Apr 21, 2023
☔ The latest upstream changes (presumably #96840) made this pull request unmergeable. Please resolve the merge conflicts. |
What are the differing behaviours of anon consts and inline const that motivate this? Off the top of my head inline consts get typeck'd with their parent item and have weirder generics/typeof to allow for that wheras other anon consts get typeckd by themselves 🤔 |
bors
commented
May 9, 2023
☔ The latest upstream changes (presumably #111402) made this pull request unmergeable. Please resolve the merge conflicts. |
apiraino
commented
May 17, 2023
switching to author to reply to previous comment and rebase - thanks :) @rustbot author |
rustbot
commented
May 24, 2023
Some changes might have occurred in exhaustiveness checking cc @Nadrieril |
cjgillot
commented
May 24, 2023
Yes, the difference in typeck root is the main reason to separate those cases IMO. Most of the cases where we end-up with code duplication are in side passes, with much less complexity than type collection. |
BoxyUwU
left a comment
There was a problem hiding this comment.
sorry for taking so long to get to looking at this properly. r=me after rebasing
Uh oh!
There was an error while loading. Please reload this page.
BoxyUwU
commented
Jun 2, 2023
@bors r+ |
bors
commented
Jun 2, 2023
…mpiler-errors Rollup of 6 pull requests Successful merges: - rust-lang#109609 (Separate AnonConst from ConstBlock in HIR.) - rust-lang#112166 (bootstrap: Rename profile = user to profile = dist) - rust-lang#112168 (Lower `unchecked_div`/`_rem` to MIR's `BinOp::Div`/`Rem`) - rust-lang#112183 (Normalize anon consts in new solver) - rust-lang#112211 (pass `--lib` to `x doc`) - rust-lang#112223 (Don't ICE in new solver when auto traits have associated types) r? `@ghost` `@rustbot` modify labels: rollup
Their behaviours are different enough to justify having separate nodes.