diff options
| author | David Tolnay <dtolnay@gmail.com> | 2020-05-14 22:36:17 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2020-05-15 08:36:33 -0700 |
| commit | 45ee3360072a4bed1a2625dc03bdae1bd5aee5c4 (patch) | |
| tree | 6dc09c1414a2fb57863617ca2b6d48b3d5cb7f49 /src/test/codegen/integer-overflow.rs | |
| parent | 85f0da67ff31923955f7fb107fb097835bb3b6ff (diff) | |
| download | rust-45ee3360072a4bed1a2625dc03bdae1bd5aee5c4.tar.gz rust-45ee3360072a4bed1a2625dc03bdae1bd5aee5c4.zip | |
Fix {:#?} representation of proc_macro::Literal
Before:
TokenStream [
Ident {
ident: "name",
span: #0 bytes(37..41),
},
Punct {
ch: '=',
spacing: Alone,
span: #0 bytes(42..43),
},
Literal { lit: Lit { kind: Str, symbol: "SNPP", suffix: None }, span: Span { lo: BytePos(44), hi: BytePos(50), ctxt: #0 } },
Punct {
ch: ',',
spacing: Alone,
span: #0 bytes(50..51),
},
Ident {
ident: "owner",
span: #0 bytes(56..61),
},
Punct {
ch: '=',
spacing: Alone,
span: #0 bytes(62..63),
},
Literal { lit: Lit { kind: Str, symbol: "Canary M Burns", suffix: None }, span: Span { lo: BytePos(64), hi: BytePos(80), ctxt: #0 } },
]
After:
TokenStream [
Ident {
ident: "name",
span: #0 bytes(37..41),
},
Punct {
ch: '=',
spacing: Alone,
span: #0 bytes(42..43),
},
Literal {
kind: Str,
symbol: "SNPP",
suffix: None,
span: #0 bytes(44..50),
},
Punct {
ch: ',',
spacing: Alone,
span: #0 bytes(50..51),
},
Ident {
ident: "owner",
span: #0 bytes(56..61),
},
Punct {
ch: '=',
spacing: Alone,
span: #0 bytes(62..63),
},
Literal {
kind: Str,
symbol: "Canary M Burns",
suffix: None,
span: #0 bytes(64..80),
},
]
Diffstat (limited to 'src/test/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions
