Skip to content

[beta] Backport fix for issue 29857 #30847

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

Merged
merged 6 commits into from
Jan 12, 2016
Merged

Conversation

nikomatsakis
Copy link
Contributor

This is a backport of #30676. I dropped one commit (the one which removed ErrorCandidate in favor of resolving to ambiguity) because it wasn't really necessary and I was afraid it may have unexpected complications.

Note that one run-pass test stopped working after this backport. This problem did not arise on master because RFC1214 warnings were made into errors, and fixing the RFC1214 problem makes the test work. I ported the fix but this suggests that this backport could cause additional regressions.

r? @brson
cc @arielb1

nikomatsakis and others added 6 commits January 11, 2016 21:59
…stead of `TyError`

Conflicts:
	src/test/compile-fail/issue-29857.rs
the problem is that now "type_is_known_to_be_sized" now returns
false when called on a type with ty_err inside - this prevents
spurious errors (we may want to move the check to check::cast
anyway - see rust-lang#12894).
Conflicts:
	src/test/compile-fail/issue-3973.rs
an error) but the bugfix causes this warning to propagate and become an
unresolved variable instead of a `TyError`, so we wind up seeing an
obscure inference error afterwards, which is somewhat unfortunate,
and suggests this bugfix can cause RFC 1214 warnings to become
errors.
@rust-highfive
Copy link
Contributor

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

brson added a commit that referenced this pull request Jan 12, 2016
[beta] Backport fix for issue 29857
@brson brson merged commit cedaee6 into rust-lang:beta Jan 12, 2016
@brson
Copy link
Contributor

brson commented Jan 12, 2016

Thanks @nikomatsakis

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants