rust/compiler
Dylan DPC 9fc297a2ae
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.
2022-07-11 15:19:32 +05:30
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_borrowck Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30
rustc_builtin_macros Minor updates based on review comments. 2022-07-09 10:04:09 +10:00
rustc_codegen_cranelift Partially stabilize const_slice_from_raw_parts 2022-07-09 23:20:02 +02:00
rustc_codegen_gcc fix cranelift and gcc backends 2022-07-09 07:27:29 -04:00
rustc_codegen_llvm don't allow ZST in ScalarInt 2022-07-09 07:27:29 -04:00
rustc_codegen_ssa tweak names and output and bless 2022-07-09 07:43:56 -04:00
rustc_const_eval Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_error_messages use subdiagnostic for message 2022-07-10 23:43:46 +00:00
rustc_errors rename a method 2022-07-11 16:51:19 +09:00
rustc_expand use subdiagnostic for message 2022-07-10 23:43:46 +00:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #99043 - compiler-errors:derive-nit, r=cjgillot 2022-07-09 11:28:07 +05:30
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Auto merge of #99056 - lcnr:higher_ranked_sub, r=oli-obk 2022-07-09 19:57:13 +00:00
rustc_interface
rustc_lexer
rustc_lint
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #99103 - TaKO8Ki:avoid-&str-to-string-conversions, r=oli-obk 2022-07-10 11:52:17 +02:00
rustc_mir_build Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30
rustc_mir_dataflow Rollup merge of #99022 - pierwill:always-storage-live-locals, r=pierwill 2022-07-09 12:52:50 +02:00
rustc_mir_transform Rollup merge of #99103 - TaKO8Ki:avoid-&str-to-string-conversions, r=oli-obk 2022-07-10 11:52:17 +02:00
rustc_monomorphize
rustc_parse
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system Auto merge of #99028 - tmiasko:inline, r=estebank 2022-07-09 04:34:51 +00:00
rustc_resolve Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30
rustc_save_analysis
rustc_serialize
rustc_session
rustc_smir
rustc_span Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30
rustc_symbol_mangling
rustc_target Rollup merge of #99043 - compiler-errors:derive-nit, r=cjgillot 2022-07-09 11:28:07 +05:30
rustc_trait_selection Rollup merge of #99091 - compiler-errors:private-types-should-stay-private, r=lcnr 2022-07-11 15:19:31 +05:30
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #99140 - TaKO8Ki:implement-is-accessible-span, r=fee1-dead 2022-07-11 15:19:32 +05:30