Skip to content

Handle type ascription type ops in NLL HRTB diagnostics#88270

Merged
bors merged 2 commits intorust-lang:masterfrom
lqd:hrtb-type-ascription
Aug 27, 2021
Merged

Handle type ascription type ops in NLL HRTB diagnostics#88270
bors merged 2 commits intorust-lang:masterfrom
lqd:hrtb-type-ascription

Conversation

@lqd
Copy link
Copy Markdown
Member

@lqd lqd commented Aug 23, 2021

Currently, there are still a few cases of the "higher-ranked subtype error" of yore, 4 of which are related to type ascription.

This PR is a follow-up to #86700, adding support for type ascription type ops, and makes 3 of these tests output the same diagnostics in NLL mode as the migrate mode (and 1 is now much closer, especially if you ignore that it already outputs an additional error in NLL mode -- which could be a duplicate caused by a lack of normalization like these comments point out, or an imprecision in some parts of normalization as described here).

Since we discussed these recently:

It should only leave this TAIT test as still emitting the terse error.

r? @estebank (so that they shake their fist at NLL's general direction less often) or @nikomatsakis or matthew or aaron, the more the merrier.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants