diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-08 21:09:54 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-06-08 21:09:54 -0400 |
| commit | 0fcea2e4238dbb7ba3758064051f6330910aae4c (patch) | |
| tree | a96aa0b360fa84cd7256cca18b69c06e4e8a20d0 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | fd4b177aabb9749dfb562c48e47379cea81dc277 (diff) | |
| download | rust-0fcea2e4238dbb7ba3758064051f6330910aae4c.tar.gz rust-0fcea2e4238dbb7ba3758064051f6330910aae4c.zip | |
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
