-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
regression: proc-macro to_string change for "invisible" delimiters #97608
Comments
That repo's Cargo.lock is set to indoc 1.0.3. This error is fixed in indoc 1.0.5 and a better fix (which you linked) in 1.0.6. It's not clear to me that @nnethercote's #96682 was intended to apply to proc_macro's Display impls, as opposed to only rustc_ast_pretty and various places that tokens get shown in diagnostics, and whether that should've had a team FCP. |
cc @petrochenkov, who knows more about all this stuff than I do. |
@rust-lang/libs-api, @rust-lang/compiler: This broke a small number of macros which involved manipulating the Display representation of tokens. One example is this code in
Another example is this code in I don't necessarily object to the change but it's worth being aware that this has made the strings If someone feels inclined to run a post-hoc FCP we may have time for one before 1.62 (4 weeks from now) or we can revert and take longer. |
My inclination is to back out #96682 and move on, but @petrochenkov may have a better idea. |
Yes, reverting #96682 should be fine. |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
#97636 is open for the reversion. |
Revert rust-lang#96682. The change was "Show invisible delimiters (within comments) when pretty printing". It's useful to show these delimiters, but is a breaking change for some proc macros. Fixes rust-lang#97608. r? `@petrochenkov`
Revert rust-lang#96682. The change was "Show invisible delimiters (within comments) when pretty printing". It's useful to show these delimiters, but is a breaking change for some proc macros. Fixes rust-lang#97608. r? ``@petrochenkov``
Re-opening to track the beta backport. |
We recently discussed Display stability in t-libs. One idea is to use specialization to have a |
Revert rust-lang#96682. The change was "Show invisible delimiters (within comments) when pretty printing". It's useful to show these delimiters, but is a breaking change for some proc macros. Fixes rust-lang#97608. r? ``@petrochenkov``
Being backported in #98440. |
This seems to have been fully resolved for now. |
https://crater-reports.s3.amazonaws.com/beta-1.62-1/beta-2022-05-20/gh/Patryk27.lxd-snapper/log.txt
Seems to be due to an older(?) version of indoc, possibly already fixed, but wanted to file in case there was an unintentional change on our end.
cc @dtolnay (indoc-impl author, I believe)
dtolnay/indoc@29e8c96 may have been related to this as well.
The text was updated successfully, but these errors were encountered: