-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Use node_ty_opt to avoid ICE in visit_ty #104514
Conversation
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
57edc37
to
75915e8
Compare
I'm going to assign this over to you, @petrochenkov, since you seem to know this area. |
Last time I touched this code was years ago. Type privacy pass, however, is not run if there are type checking errors (compilation stops after type checking in this case). |
So, if the result is the same and nothing ICEs right now, then I guess the first version was preferable just because it was simpler. |
Or alternatively |
75915e8
to
ecea94e
Compare
Yes, I also prefer to the first version, and add some comments. @rustbot ready |
@bors r+ rollup |
…r=petrochenkov Use node_ty_opt to avoid ICE in visit_ty Fixes rust-lang#104513
let ty = self.resolve(ty, &hir_ty.span); | ||
self.write_ty_to_typeck_results(hir_ty.hir_id, ty); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, we probably should write back ty_error
or something else here... At least that would also delay a bug in the case we have no node_ty
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, there was a comment above to this effect.
…iaskrgr Rollup of 11 pull requests Successful merges: - rust-lang#104514 (Use node_ty_opt to avoid ICE in visit_ty) - rust-lang#104704 (Allow power10-vector feature in PowerPC) - rust-lang#104747 (resolve: Don't use constructor def ids in the map for field names) - rust-lang#104773 (OpaqueCast projections are always overlapping, they can't possibly be disjoint) - rust-lang#104774 (Document split{_ascii,}_whitespace() for empty strings) - rust-lang#104780 (make `error_reported` check for delayed bugs) - rust-lang#104782 (Bump the const eval step limit) - rust-lang#104792 (rustdoc: simplify `.search-results-title` CSS) - rust-lang#104796 (lint: do not warn unused parens around higher-ranked function pointers) - rust-lang#104820 (Remove normalize_projection_type) - rust-lang#104822 (with_query_mode -> new) Failed merges: - rust-lang#104716 (move 2 candidates into builtin candidate) - rust-lang#104841 (Assert that we don't capture escaping bound vars in `Fn` trait selection) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #104513