`SnippetProvider::span_to_snippet` avoids allocating a `String` so it is more efficient than `CodeMap::span_to_snippet`.