-
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
user type annotations are captured post normalization #54940
Comments
I think in general we probably need to rework a bit how the NLL checker is handling user-given type annotations to cover normalizations. My expectation is that we should move over to the strategy of instantiating the user-types with fresh type variables so that we can run the |
Discussed at NLL weekly meeting. Assigning to @nikomatsakis as primary person to resolve this. Assigning to self as a kind of backup plan since I know that @nikomatsakis has some conflicts this week that will impede their ability to actually hack on this problem in the short term. |
The problem is that we are capturing these types after they've been normalized. I think the best fix would be to capture the types before they've been normalized, and then have the NLL checker do the normalization. I'm not 100% sure how much of a pain this is going to be though; it might be a bit of a pain in some cases. |
It also would require #55093 to land first. |
OK, digging a bit deeper. This is going to be an awful pain to fix =) |
Demoting to release. This will be complex and is a relatively obscure bug. |
Demoting from release milestone. This is really effectively blocked on lazy normalization so going to focus on that. |
triage: Marking P-high. If WG-traits or T-compiler wants to demote then they can do so, but from my point of view this is going to be one of the last things potentially blocking turning borrowck=migrate on by default for the 2015 edition, so I want it to be readily visible. |
also, nominating for discussion at NLL meeting, just to get check-in about what plan is for lazy-normalization from niko. |
triage. Pinged @nikomatsakis ; after I asked if there was any updated here, they responded:
|
triage: marking as blocked on #60471. Downgrading to P-medium. |
This compiles without |
I intend to look into this in the somewhat near future @rustbot claim |
This example compiles but should not. Haven't investigated deeply.
cc #47184
The text was updated successfully, but these errors were encountered: