Uh oh!
There was an error while loading. Please reload this page.
Do two passes of handle_opaque_type_uses_next - #147249
Conversation
Uh oh!
There was an error while loading. Please reload this page.
…pre-fallback where we equate hidden types but do not report errors
ca75834 to
a3fbae5Comparerustbot
commented
Oct 2, 2025
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
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.
Uh oh!
There was an error while loading. Please reload this page.
jackh726
commented
Oct 3, 2025
@lcnr I fixed your first three comments. The rename from |
This comment has been minimized.
This comment has been minimized.
…ve the assert in favor over a comment, and change to & for &mut
c113b29 to
283ad66CompareUh oh!
There was an error while loading. Please reload this page.
| // We do actually need to check this the second pass (we can't just | ||
| // store this), because we can go from `UnconstrainedHiddenType` to | ||
| // `HasDefiningUse` (because of fallback) |
There was a problem hiding this comment.
we can also just go from no uses to a defining use due to fallback, e.g. if you have soem ?will_fallback: Trait<opaque> goal
There was a problem hiding this comment.
That is UnconstrainedHiddleType?
There was a problem hiding this comment.
it could also be None. Maybe not with this specific example, but certainly with ?will_fallback: RequiresSend<fn_ptr_to_opaque>
There was a problem hiding this comment.
please also/instead add the more minimized tests from rust-lang/trait-system-refactor-initiative#240
jackh726
commented
Oct 12, 2025
Done. Just put each minimization in the same test file. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…inimizations. Update comment and test.
2fc6f80 to
d51f09eComparejackh726
commented
Oct 14, 2025
@bors r=lcnr |
bors
commented
Oct 14, 2025
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Rollup of 11 pull requests Successful merges: - #146277 (Enable `u64` limbs in `core::num::bignum`) - #146976 (constify basic Clone impls) - #147249 (Do two passes of `handle_opaque_type_uses_next`) - #147266 (fix 2 search graph bugs) - #147468 (Implement fs api set_times and set_times_nofollow) - #147497 (`proc_macro` cleanups (3/N)) - #147594 (std: implement `pal::os::exit` for VEXos) - #147596 (Adjust the Arm targets in CI to reflect latest changes) - #147607 (GVN: Invalidate derefs at loop headers) - #147620 (Avoid redundant UB check in RangeFrom slice indexing) - #147647 (Hide vendoring and copyright in GHA group) r? `@ghost` `@rustbot` modify labels: rollup
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Rollup of 12 pull requests Successful merges: - #146277 (Enable `u64` limbs in `core::num::bignum`) - #146976 (constify basic Clone impls) - #147249 (Do two passes of `handle_opaque_type_uses_next`) - #147266 (fix 2 search graph bugs) - #147497 (`proc_macro` cleanups (3/N)) - #147546 (Suppress unused_parens for labeled break) - #147548 (Fix ICE for never pattern as closure parameters) - #147594 (std: implement `pal::os::exit` for VEXos) - #147596 (Adjust the Arm targets in CI to reflect latest changes) - #147607 (GVN: Invalidate derefs at loop headers) - #147620 (Avoid redundant UB check in RangeFrom slice indexing) - #147647 (Hide vendoring and copyright in GHA group) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #147249 - jackh726:opaque-type-fallback, r=lcnr Do two passes of `handle_opaque_type_uses_next` Fixesrust-lang/trait-system-refactor-initiative#240 Also did a little bit of cleanup, can squash the commits if decided. r? lcnr
Zalathar
commented
Oct 15, 2025
Bors hasn't noticed that this was merged. @bors r- |
Rollup of 12 pull requests Successful merges: - rust-lang#146277 (Enable `u64` limbs in `core::num::bignum`) - rust-lang#146976 (constify basic Clone impls) - rust-lang#147249 (Do two passes of `handle_opaque_type_uses_next`) - rust-lang#147266 (fix 2 search graph bugs) - rust-lang#147497 (`proc_macro` cleanups (3/N)) - rust-lang#147546 (Suppress unused_parens for labeled break) - rust-lang#147548 (Fix ICE for never pattern as closure parameters) - rust-lang#147594 (std: implement `pal::os::exit` for VEXos) - rust-lang#147596 (Adjust the Arm targets in CI to reflect latest changes) - rust-lang#147607 (GVN: Invalidate derefs at loop headers) - rust-lang#147620 (Avoid redundant UB check in RangeFrom slice indexing) - rust-lang#147647 (Hide vendoring and copyright in GHA group) r? `@ghost` `@rustbot` modify labels: rollup
Fixesrust-lang/trait-system-refactor-initiative#240
Also did a little bit of cleanup, can squash the commits if decided.
r? lcnr