-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avoid type-live-for-region obligations on dummy nodes #46226
Conversation
src/librustc/traits/mod.rs
Outdated
// them here too, and we will remove this function when | ||
// we move over to lazy normalization *anyway*. | ||
let fulfill_cx = FulfillmentContext::new_ignoring_regions(); | ||
|
||
let predicates = match fully_normalize( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean fully_normalize_with_fulfillcx
here?
[00:08:49] error[E0061]: this function takes 4 parameters but 5 parameters were supplied
[00:08:49] --> /checkout/src/librustc/traits/mod.rs:533:13
[00:08:49] |
[00:08:49] 533 | &infcx,
[00:08:49] | ^^^^^^ expected 4 parameters
[00:08:49] ...
[00:08:49] 588 | / pub fn fully_normalize<'a, 'gcx, 'tcx, T>(infcx: &InferCtxt<'a, 'gcx, 'tcx>,
[00:08:49] 589 | | cause: ObligationCause<'tcx>,
[00:08:49] 590 | | param_env: ty::ParamEnv<'tcx>,
[00:08:49] 591 | | value: &T)
[00:08:49] ... |
[00:08:49] 609 | | fully_normalize_with_fulfillcx(infcx, fulfillcx, cause, param_env, value)
[00:08:49] 610 | | }
[00:08:49] | |_- defined here
Type-live-for-region obligations on DUMMY_NODE_ID cause an ICE, and it turns out that in the few cases they are needed, these obligations are not needed anyway because they are verified elsewhere. Fixes rust-lang#46069.
facb820
to
ebd219a
Compare
@bors r+ |
📌 Commit ebd219a has been approved by |
⌛ Testing commit ebd219a with merge 2212da6e98381f57e4f0b8306ba595f9fc999c8b... |
💔 Test failed - status-travis |
@bors retry — travis-ci/travis-ci#8821 |
avoid type-live-for-region obligations on dummy nodes Type-live-for-region obligations on DUMMY_NODE_ID cause an ICE, and it turns out that in the few cases they are needed, these obligations are not needed anyway because they are verified elsewhere. Fixes #46069. Beta-nominating because this is a regression for our new beta. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Hmm, was it supposed to be backported to 1.23.0? Stable 1.23.0 fails the test in this pull request. |
Looks like we forgot to backport to 1.23.0 (sorry about that!) so removing the beta tags. |
Type-live-for-region obligations on DUMMY_NODE_ID cause an ICE, and it
turns out that in the few cases they are needed, these obligations are not
needed anyway because they are verified elsewhere.
Fixes #46069.
Beta-nominating because this is a regression for our new beta.
r? @nikomatsakis