pretty.rs: Update Closure and Generator print #77069
Conversation
davidtwco
left a comment
There was a problem hiding this comment.
LGTM, some minor comments/inconsistencies that might be fine but I'd like to check.
| } | ||
| if !self.tcx().sess.verbose() { | ||
| p!(write("generator")); | ||
| // FIXME(eddyb) should use `def_span`. |
There was a problem hiding this comment.
Out of curiosity, did you try using def_span here?
There was a problem hiding this comment.
Didn't try def_span, I guess I could've. I was mostly trying to keep changes minimal to non-verbose mode with this PR. Main motivation is to remove printing upvar_tys for non-verbose.
343ba38 to
1fb5eca
Compare
There was a problem hiding this comment.
Won't need this check when rust-lang/project-rfc-2229#4 is implemented, because then the is_valid() check itself will fail because the tupled_upvar_tys will be an inference variable.
|
☔ The latest upstream changes (presumably #76176) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
Co-authored-by: Dhruv Jauhar <dhruvjhr@gmail.com> Co-authored-by: Logan Mosier <logmosier@gmail.com>
Co-authored-by: Dhruv Jauhar <dhruvjhr@gmail.com> Co-authored-by: Logan Mosier <logmosier@gmail.com>
1fb5eca to
adda0cd
Compare
|
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author |
|
@davidtwco updated |
|
@bors r+ |
|
📌 Commit adda0cd has been approved by |
|
☀️ Test successful - checks-actions, checks-azure |
More detailed outline: rust-lang/project-rfc-2229#17
Closes: rust-lang/project-rfc-2229#11
r? @nikomatsakis
cc @eddyb @davidtwco @estebank