Skip to content

[beta] backport fix for #40951#41269

Closed
nikomatsakis wants to merge 3 commits into
rust-lang:betafrom
nikomatsakis:inference-subtype-18653
Closed

[beta] backport fix for #40951#41269
nikomatsakis wants to merge 3 commits into
rust-lang:betafrom
nikomatsakis:inference-subtype-18653

Conversation

@nikomatsakis

Copy link
Copy Markdown
Contributor

cc @arielb1 -- this is a backport of just the fix needed for #40951. Thoughts?

In some cases, we give multiple primary spans, in which case we would
report one `//~` annotation per primary span. That was very confusing
because these things are reported to the user as a single error.

UI tests would be better here.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @arielb1

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

@rust-highfive

Copy link
Copy Markdown
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!

@nikomatsakis nikomatsakis changed the title backport fix for #40951 [beta] backport fix for #40951 Apr 13, 2017
@nikomatsakis

Copy link
Copy Markdown
Contributor Author

cc @brson @alexcrichton

@nikomatsakis nikomatsakis added beta-nominated Nominated for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 13, 2017
@arielb1

arielb1 commented Apr 13, 2017

Copy link
Copy Markdown
Contributor

This feels a little risky to me - who knows if this can trigger another (performance or functionality) edge case. How bad is #40951? It looks like most of the #40319 regressions are either "bad annotation" or "NLL".

@alexcrichton

Copy link
Copy Markdown
Member

r=me if the compiler team is good with this

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

@arielb1

This feels a little risky to me - who knows if this can trigger another (performance or functionality) edge case.

I also have mixed feelings.

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

We discussed this in the @rust-lang/compiler meeting and decided not to backport. This change is a bit more complex than we are comfortable with, and the fallout seems quite minimal. The regression is fixed on nightly.

@nikomatsakis nikomatsakis removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants