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

Inline literals in generated code #3

Open
dtolnay opened this issue May 27, 2018 · 0 comments
Open

Inline literals in generated code #3

dtolnay opened this issue May 27, 2018 · 0 comments

Comments

@dtolnay
Copy link
Owner

dtolnay commented May 27, 2018

Part of the Debug example currently compiles to:

let __v7 = "x";
let _ = ::std::fmt::DebugStruct::field(__v6, __v7, __v3);

It doesn't matter here for correctness but this would be more readable in cargo expand if emitted as:

let _ = ::std::fmt::DebugStruct::field(__v6, "x", __v3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant