-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-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-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Milestone
Description
proc-macro-hack is panicking[1] on beta 1.52 in some cases where it wasn't before:
My guess is this might have something to do with the usize-suffixed tuple indices, but I'm not sure. It seems to be new behavior on beta; I don't know whether this is caused by any of the recently landed macro-related patches, but it seems not impossible.
[1]: This is my belief, as it's the only repository in the dependency tree to contain the 'source.starts_with(prefix)' string in its source code (based on cargo vendor).
cc @Aaron1011 @petrochenkov @dtolnay
edit - some more cases:
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/bryanburgers.connectbot/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/guillepb10.performance_test_rust/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/marekm1844.user-tower/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/mindriot101.gitlab-hook-deploy/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/victorinno.tower_web_dummy_service/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/vizitiuRoman.notifier-service/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/gh/vizitiuRoman.rust-notification-service/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/reg/tower-web-protobuf-0.1.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.52-1/beta-2021-03-27/reg/rustiful-0.1.0/log.txt
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-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-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.