rustdoc: correct doctest span for trailing semicolon after item
Fixesrust-lang/rust#157371.
When a doctest contains a trailing semicolon after an item, rustdoc can map the
resulting warning to unrelated source following the documentation block rather
than to the semicolon inside the doctest.
Changes only diagnostic span reporting.