Uh oh!
There was an error while loading. Please reload this page.
Do not allow typeck children items to constrain outer RPITs - #99345
Conversation
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.
oli-obk
commented
Jul 18, 2022
@bors r+ |
bors
commented
Jul 18, 2022
…r=oli-obk Do not allow typeck children items to constrain outer RPITs Fixesrust-lang#99073 in a simpler and more conservative way than rust-lang#99079. Simply raise a mismatched types error if we try to constrain an RPIT in an item that isn't the RPIT's parent. r? `@oli-obk`
bors
commented
Jul 19, 2022
☔ The latest upstream changes (presumably #99451) made this pull request unmergeable. Please resolve the merge conflicts. |
273b977 to
5a4601fComparecompiler-errors
commented
Jul 19, 2022
@bors r=oli-obk |
bors
commented
Jul 19, 2022
Rollup of 7 pull requests Successful merges: - rust-lang#98101 (stdlib support for Apple WatchOS) - rust-lang#99345 (Do not allow typeck children items to constrain outer RPITs) - rust-lang#99383 (Formalize defining_use_anchor) - rust-lang#99436 (Add flag to configure `noalias` on `Box<T>`) - rust-lang#99483 (Fix a numerical underflow in tuple wrap suggestion) - rust-lang#99485 (Stop injecting `#[allow(unused_qualifications)]` in generated `derive` implementations) - rust-lang#99486 (Refactor: remove a string comparison between types in `check_str_addition`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
RalfJung
commented
Aug 23, 2022
I think this is at least partially responsible for an ICE in Miri -- a regression that started showing up when #99506 landed. See rust-lang/miri#2433. |
@RalfJung how exactly are you testing this? Master + reverting a PR? Or bisecting nightly builds? Because the code I added in this PR I later reverted in #99079. #99079 (or this PR, for that matter) itself should not cause any change in normalization behavior, since all it does is cause an extra error to be raised in some cases. Though I guess you could try reverting #99079 on master and see if it causes the ICE to go away. Feel free to ping me on zulip if you'd like to dig deeper together. |
RalfJung
commented
Aug 23, 2022
(Continuing the discussion in rust-lang/miri#2433) |
Fixes#99073 in a simpler and more conservative way than #99079. Simply raise a mismatched types error if we try to constrain an RPIT in an item that isn't the RPIT's parent.
r? @oli-obk