]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #93967 - cjgillot:short-struct-span, r=petrochenkov
authorbors <bors@rust-lang.org>
Fri, 1 Jul 2022 20:14:34 +0000 (20:14 +0000)
committerbors <bors@rust-lang.org>
Fri, 1 Jul 2022 20:14:34 +0000 (20:14 +0000)
Shorten def_span for more items.

The `def_span` query only returns the signature span for functions.
Struct/enum/union definitions can also have a very long body.
This PR shortens the associated span.


Trivial merge