-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Eliminate $crate in --pretty=expanded #38016
Copy link
Copy link
Labels
A-decl-macros-1-2Area: Declarative macros 1.2Area: Declarative macros 1.2C-bugCategory: This is a bug.Category: This is a bug.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.
Metadata
Metadata
Assignees
Labels
A-decl-macros-1-2Area: Declarative macros 1.2Area: Declarative macros 1.2C-bugCategory: This is a bug.Category: This is a bug.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Similar to #37637 so cc @jseyfried.
cat src/main.rsrustc --pretty=expanded -Zunstable-options src/main.rsThe
$crateprevents the expanded code from being parsed by rustfmt.rustc --pretty=expanded -Zunstable-options src/main.rs | rustfmtThis breaks
cargo expandwhich runs the code through rustfmt by default.I think
--pretty=expandedshould produce valid Rust code which means either eliminate$cratelike we did for #37637, or allow rustfmt to parse it.