shrinking the deprecated method span close https://github.com/rust-lang/rust/issues/84637
span_to_snippet