about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-11 15:19:32 +0530
committerGitHub <noreply@github.com>2022-07-11 15:19:32 +0530
commit9fc297a2aefe141951994bec9ebd74733fed1623 (patch)
tree54d1d5d1a9a557a838d25f18d1ad822c8a4b3985 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent93f71d4e012df4477a34e911f8734c545b6bca2f (diff)
parent018155c3a218b819b70d1dc57b08fe3bc7b2ec3c (diff)
downloadrust-9fc297a2aefe141951994bec9ebd74733fed1623.tar.gz
rust-9fc297a2aefe141951994bec9ebd74733fed1623.zip
Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead
Implement `SourceMap::is_span_accessible`

This patch adds `SourceMap::is_span_accessible` and replaces `span_to_snippet(span).is_ok()` and `span_to_snippet(span).is_err()` with it. This removes a `&str` to `String` conversion.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions