-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
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?
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.