diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-10 11:03:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 11:03:49 +0200 |
| commit | e04e3c89cc08546c5c762ea915cb72d4069a733e (patch) | |
| tree | 6230f1b4dc1d9ab1bbb76fac7ddbe468af351422 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 0a77c8c2956259eb6811b51fac095c8ed21e6760 (diff) | |
| parent | 0fcea2e4238dbb7ba3758064051f6330910aae4c (diff) | |
| download | rust-e04e3c89cc08546c5c762ea915cb72d4069a733e.tar.gz rust-e04e3c89cc08546c5c762ea915cb72d4069a733e.zip | |
Rollup merge of #73157 - Aaron1011:where-oh-where-has-my-little-span-gone, r=ecstatic-morse
Don't lose empty `where` clause when pretty-printing Previously, we would parse `struct Foo where;` and `struct Foo;` identically, leading to an 'empty' `where` clause being omitted during pretty printing. This will cause us to lose spans when proc-macros involved, since we will have a collected `where` token that does not appear in the pretty-printed item. We now explicitly track the presence of a `where` token during parsing, so that we can distinguish between `struct Foo where;` and `struct Foo;` during pretty-printing
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
