about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-10 11:03:49 +0200
committerGitHub <noreply@github.com>2020-06-10 11:03:49 +0200
commite04e3c89cc08546c5c762ea915cb72d4069a733e (patch)
tree6230f1b4dc1d9ab1bbb76fac7ddbe468af351422 /library/std/src/sys/unix/stack_overflow.rs
parent0a77c8c2956259eb6811b51fac095c8ed21e6760 (diff)
parent0fcea2e4238dbb7ba3758064051f6330910aae4c (diff)
downloadrust-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