reflect icon indicating copy to clipboard operation
reflect copied to clipboard

Inline literals in generated code

Open dtolnay opened this issue 7 years ago • 0 comments

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);

dtolnay avatar May 27 '18 07:05 dtolnay