Skip to content

wfcheck: no need for ICE on unresolved type expression #62212

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

pnkfelix
Copy link
Member

wfcheck: when adding field: Sized constraints to the members of a struct, just assume needs-drop on unresolved type expression for last-field, rather than risk even a delayed ICE.

Fix #61402.

for last-field, rather than even a delayed ICE.

Fix rust-lang#61402.
@rust-highfive
Copy link
Contributor

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 28, 2019
@pnkfelix
Copy link
Member Author

I wouldn't mind if @arielb1 could double-check my thinking here: Is it more important that we continue to ICE here? Am I masking a bug elsewhere?

(Also: Is this something would be fixed by lazy-normalization?)

@arielb1
Copy link
Contributor

arielb1 commented Jun 29, 2019

see #62240, which fixes the root cause instead of hiding the symptoms.

@estebank
Copy link
Contributor

estebank commented Jul 1, 2019

I'd close this in favor of #62240.

@pnkfelix pnkfelix closed this Jul 1, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 3, 2019
wfcheck: resolve the type-vars in `AdtField` types

Normalization can leave some type-vars unresolved in its return type.
Make sure to resolve them so we have an infcx-independent type that can
be used with `needs_drop`.

Fixes rust-lang#61402.

Closes rust-lang#62212 - this PR fixes the root cause.
Centril added a commit to Centril/rust that referenced this pull request Jul 3, 2019
wfcheck: resolve the type-vars in `AdtField` types

Normalization can leave some type-vars unresolved in its return type.
Make sure to resolve them so we have an infcx-independent type that can
be used with `needs_drop`.

Fixes rust-lang#61402.

Closes rust-lang#62212 - this PR fixes the root cause.
Centril added a commit to Centril/rust that referenced this pull request Jul 3, 2019
wfcheck: resolve the type-vars in `AdtField` types

Normalization can leave some type-vars unresolved in its return type.
Make sure to resolve them so we have an infcx-independent type that can
be used with `needs_drop`.

Fixes rust-lang#61402.

Closes rust-lang#62212 - this PR fixes the root cause.
Centril added a commit to Centril/rust that referenced this pull request Jul 3, 2019
wfcheck: resolve the type-vars in `AdtField` types

Normalization can leave some type-vars unresolved in its return type.
Make sure to resolve them so we have an infcx-independent type that can
be used with `needs_drop`.

Fixes rust-lang#61402.

Closes rust-lang#62212 - this PR fixes the root cause.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error: internal compiler error: "inference variables in ..." on packed type
4 participants