-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Regression: spurious "error: expected ," in serde::Serialize on macro_rules-variable path enum discriminant #72608
Copy link
Copy link
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, ..)C-bugCategory: This is a bug.Category: This is a bug.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 ExampleP-criticalCritical priorityCritical priorityT-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-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
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, ..)C-bugCategory: This is a bug.Category: This is a bug.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 ExampleP-criticalCritical priorityCritical priorityT-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-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Somewhat minimized test case: (still involves serde_derive and syn)
Compiles in
nightly-2020-05-24, errors innightly-2020-05-25:Any of these changes makes compilation succeed:
serde::Serializesyn/fullfeature$modwith a non-variable module name{ use $mod::DEPTH_COMPONENT; DEPTH_COMPONENT }blockRegression range: 8970e8b...46e85b4. Merges:
dyntrait syntax in more comments and docs #72532 - ratijas:dyn-trait-object-doc, r=jonas-schievinkNodeIdinResolverOutputs#72402 - marmeladema:resolver-outputs-def-id, r=ecstatic-morseParser::collect_tokens#72393 - Aaron1011:feature/rewrite-collect-tokens, r=petrochenkovmacro_defsmap #72284 - Aaron1011:feature/inline-macro-did, r=petrochenkovTokenKind::Interpolatedinprobably_equal_for_proc_macro#72388 - Aaron1011:fix/deep-tokenstream-equality, r=petrochenkovExcluding those that seem unrelated to me leaves:
NodeIdinResolverOutputs#72402Parser::collect_tokens#72393macro_defsmap #72284TokenKind::Interpolatedinprobably_equal_for_proc_macro#72388