Skip to content
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

[1.38] Regression: custom attribute panicked #63895

Closed
petrochenkov opened this issue Aug 25, 2019 · 2 comments
Closed

[1.38] Regression: custom attribute panicked #63895

petrochenkov opened this issue Aug 25, 2019 · 2 comments
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@petrochenkov
Copy link
Contributor

#63628 (comment)

custom attribute panicked

[INFO] [stderr]    Compiling display-as v0.4.6 (/opt/crater/workdir)
[INFO] [stderr] error: custom attribute panicked
[INFO] [stderr]    --> tests/format_as.rs:104:5
[INFO] [stderr]     |
[INFO] [stderr] 104 |     #[with_template("Foo " self.0)]
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: message: with_template must be applied to an impl that ends in '{}', not { }

One more victim to the pretty-printing changes (#62667), whitespace-related in this case.

Here's what the macro does:

    if last.to_string() != "{  }" {
        /* report error */
    }

Pretty unreliable check, isn't it?

@petrochenkov petrochenkov added the regression-from-stable-to-beta Performance or correctness regression from stable to beta. label Aug 25, 2019
@estebank
Copy link
Contributor

I feel this is a reasonable breaking change.

@petrochenkov petrochenkov added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 26, 2019
@Mark-Simulacrum Mark-Simulacrum added this to the 1.38 milestone Aug 30, 2019
@nikomatsakis
Copy link
Contributor

Discussed in compiler triage meeting today. Closing as expected and reasonable.

@Centril Centril removed this from the 1.38 milestone Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants