fn trim_span_hi(span: Span, to_pos: BytePos) -> Span