Uh oh!
There was an error while loading. Please reload this page.
split definition and use site hidden tys - #148170
Conversation
rustbot
commented
Oct 27, 2025
Some changes occurred in exhaustiveness checking cc @Nadrieril |
| for hidden_ty in fcx_typeck_results.hidden_types.values() { | ||
| assert!(!hidden_ty.has_infer()); | ||
| } |
There was a problem hiding this comment.
ideally this is just an assert in EarlyBinder::bind. Adding that is more annoying than I expected as we need to do some lifetime dependent shit in some of the query system stuff which relies on transmutes. nm, actually just gonna do that in this PR as well
There was a problem hiding this comment.
also ass because we create ty::EarlyBinder<'tcx, impl IntoIterator<Item = ty::Binder<'tcx, ty::TraitRef<'tcx>>>> sometimes. An early binder of an iterator :x
bors
commented
Oct 29, 2025
☔ The latest upstream changes (presumably #148220) made this pull request unmergeable. Please resolve the merge conflicts. |
cd5dc48 to
3a6ab3fCompare
This comment has been minimized.
This comment has been minimized.
| let ty = match defining_scope_kind { | ||
| DefiningScopeKind::HirTypeck => { | ||
| fold_regions(tcx, self.ty, |_, _| tcx.lifetimes.re_erased) | ||
| } | ||
| DefiningScopeKind::MirBorrowck => self.ty, |
There was a problem hiding this comment.
rustfmt went out of its way to make a match arm bigger just because it had more space? wut
| location_map: Rc<DenseLocationMap>, | ||
| hidden_types: &mut DefinitionSiteHiddenTypes<'tcx>, | ||
| hidden_types: &mut FxIndexMap<LocalDefId, ty::DefinitionSiteHiddenType<'tcx>>, | ||
| opaque_types: &[(OpaqueTypeKey<'tcx>, OpaqueHiddenType<'tcx>)], |
There was a problem hiding this comment.
should rename OpaqueHiddenType to ProvisionHiddenType so that its always clear that there are two "kinds" of hidden types.
3a6ab3f to
5cbb5d0Comparerustbot
commented
Oct 31, 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. |
BoxyUwU
commented
Nov 1, 2025
@bors r+ |
bors
commented
Nov 1, 2025
bors
commented
Nov 2, 2025
split definition and use site hidden tys Tracking this implicitly is kinda messy and easy to get wrong. r? `@BoxyUwU`
bors
commented
Nov 2, 2025
💔 Test failed - checks-actions |
Zalathar
commented
Nov 2, 2025
Looks like a CI runner flaked out. @bors retry |
split definition and use site hidden tys Tracking this implicitly is kinda messy and easy to get wrong. r? `@BoxyUwU`
bors
commented
Nov 2, 2025
split definition and use site hidden tys Tracking this implicitly is kinda messy and easy to get wrong. r? `@BoxyUwU`
Zalathar
commented
Nov 2, 2025
Yielding to enclosing rollup. @bors retry |
Rollup of 9 pull requests Successful merges: - #147947 (Implement `strip_circumfix` lib feature) - #148170 (split definition and use site hidden tys) - #148194 (compiletest: Remove `cleanup_debug_info_options`) - #148199 (compiletest: Don't modify `testpaths` when creating aux contexts) - #148240 (rustc_codegen: fix musttail returns for cast/indirect ABIs) - #148290 (Do not emit solver errors that contain error types) - #148357 (temporary-lifetime-extension.rs test works in all editions) - #148362 (docs: makes a note about possible building `rustc 1.91.0 + host tools` for win7) - #148367 (Use --print host-tuple to get the host) r? `@ghost` `@rustbot` modify labels: rollup
split definition and use site hidden tys Tracking this implicitly is kinda messy and easy to get wrong. r? `@BoxyUwU`
Rollup of 8 pull requests Successful merges: - #148170 (split definition and use site hidden tys) - #148194 (compiletest: Remove `cleanup_debug_info_options`) - #148199 (compiletest: Don't modify `testpaths` when creating aux contexts) - #148290 (Do not emit solver errors that contain error types) - #148357 (temporary-lifetime-extension.rs test works in all editions) - #148362 (docs: makes a note about possible building `rustc 1.91.0 + host tools` for win7) - #148367 (Use --print host-tuple to get the host) - #148374 (miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #148170 - lcnr:opaques-early-binder, r=BoxyUwU split definition and use site hidden tys Tracking this implicitly is kinda messy and easy to get wrong. r? ``@BoxyUwU``
Rollup of 8 pull requests Successful merges: - rust-lang/rust#148170 (split definition and use site hidden tys) - rust-lang/rust#148194 (compiletest: Remove `cleanup_debug_info_options`) - rust-lang/rust#148199 (compiletest: Don't modify `testpaths` when creating aux contexts) - rust-lang/rust#148290 (Do not emit solver errors that contain error types) - rust-lang/rust#148357 (temporary-lifetime-extension.rs test works in all editions) - rust-lang/rust#148362 (docs: makes a note about possible building `rustc 1.91.0 + host tools` for win7) - rust-lang/rust#148367 (Use --print host-tuple to get the host) - rust-lang/rust#148374 (miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#148170 (split definition and use site hidden tys) - rust-lang#148194 (compiletest: Remove `cleanup_debug_info_options`) - rust-lang#148199 (compiletest: Don't modify `testpaths` when creating aux contexts) - rust-lang#148290 (Do not emit solver errors that contain error types) - rust-lang#148357 (temporary-lifetime-extension.rs test works in all editions) - rust-lang#148362 (docs: makes a note about possible building `rustc 1.91.0 + host tools` for win7) - rust-lang#148367 (Use --print host-tuple to get the host) - rust-lang#148374 (miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Tracking this implicitly is kinda messy and easy to get wrong.
r? @BoxyUwU