dtolnay / dtolnay/reflect

Inline literals in generated code

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
780
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Part of the Debug example currently compiles to:

```rust
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:

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.