rust/compiler
Dylan DPC 4946ee7c8f
Rollup merge of #103651 - Alexendoo:parse-format-unicode-escapes, r=wesleywiser
Fix `rustc_parse_format` spans following escaped utf-8 multibyte chars

Currently too many skips are created for char escapes that are larger than 1 byte when encoded in UTF-8, [playground:](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c77a9dc669b69b167271b59ed2c8d88c)

```rust
fn main() {
    format!("\u{df}{a}");
    format!("\u{211d}{a}");
    format!("\u{1f4a3}{a}");
}
```
```
error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope
 --> src/main.rs:2:22
  |
2 |     format!("\u{df}{a}");
  |                      ^ not found in this scope

error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope
 --> src/main.rs:3:25
  |
3 |     format!("\u{211d}{a}");
  |                         ^ not found in this scope

error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope
 --> src/main.rs:4:27
  |
4 |     format!("\u{1f4a3}{a}");
  |                           ^ not found in this scope
```

This reduces the number of skips to account for that

Fixes https://github.com/rust-lang/rust-clippy/issues/9727
2022-11-08 11:23:51 +05:30
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_apfloat
rustc_arena
rustc_ast rustdoc: use ThinVec for cleaned generics 2022-11-02 16:17:22 -07:00
rustc_ast_lowering rustdoc: use ThinVec for cleaned generics 2022-11-02 16:17:22 -07:00
rustc_ast_passes Rollup merge of #95710 - fee1-dead-contrib:stabilize_arbitrary_enum_discriminant, r=joshtriplett 2022-10-26 17:32:53 +05:30
rustc_ast_pretty Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
rustc_attr Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_borrowck Auto merge of #103218 - CastilloDel:infer, r=jackh726 2022-11-07 07:38:05 +00:00
rustc_builtin_macros rustdoc: use ThinVec for cleaned generics 2022-11-02 16:17:22 -07:00
rustc_codegen_cranelift Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00
rustc_codegen_gcc Add type_array to BaseTypeMethods 2022-11-06 14:18:36 +05:30
rustc_codegen_llvm Rollup merge of #104066 - TimNN:riscv-layout, r=nikic 2022-11-07 09:46:28 +09:00
rustc_codegen_ssa Rollup merge of #104045 - Ayush1325:type_array, r=nikic 2022-11-07 09:46:26 +09:00
rustc_const_eval Auto merge of #103975 - oli-obk:tracing, r=jackh726 2022-11-06 02:21:34 +00:00
rustc_data_structures Rollup merge of #103845 - camsteffen:data-structures-track-caller, r=compiler-errors 2022-11-04 12:18:01 +01:00
rustc_driver Auto merge of #103217 - mejrs:track, r=eholk 2022-11-01 21:09:45 +00:00
rustc_error_codes Rollup merge of #103757 - ffmancera:ff/clarify_E0207, r=jackh726 2022-11-07 18:35:23 +05:30
rustc_error_messages Rollup merge of #103012 - chenyukang:fix-102806, r=davidtwco,compiler-errors 2022-11-06 08:35:26 +01:00
rustc_errors Rollup merge of #103792 - JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt2, r=davidtwco 2022-11-04 18:52:27 +01:00
rustc_expand Auto merge of #103217 - mejrs:track, r=eholk 2022-11-01 21:09:45 +00:00
rustc_feature Auto merge of #102458 - JohnTitor:stabilize-instruction-set, r=oli-obk 2022-11-05 20:39:06 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Some tracing and comment cleanups 2022-11-04 17:10:07 +00:00
rustc_hir_analysis Auto merge of #99943 - compiler-errors:tuple-trait, r=jackh726 2022-11-06 17:48:33 +00:00
rustc_hir_pretty pretty: fix to print some lifetimes on HIR pretty-print 2022-10-15 23:34:21 +09:00
rustc_hir_typeck Rollup merge of #104038 - compiler-errors:super-norm-closure-sig, r=lcnr 2022-11-07 18:35:25 +05:30
rustc_incremental Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_index Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
rustc_infer Auto merge of #103218 - CastilloDel:infer, r=jackh726 2022-11-07 07:38:05 +00:00
rustc_interface Simplify code 2022-11-05 17:54:06 +01:00
rustc_lexer Make underscore_literal_suffix a hard error. 2022-11-07 10:00:36 +11:00
rustc_lint Rollup merge of #103868 - compiler-errors:trait-engine-less, r=jackh726 2022-11-05 00:02:04 +01:00
rustc_lint_defs Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error 2022-10-24 13:40:07 -05:00
rustc_llvm LLVM 16: Switch to using MemoryEffects 2022-11-04 17:58:16 +00:00
rustc_log
rustc_macros Modify comment syntax error 2022-11-07 14:33:33 +08:00
rustc_metadata Auto merge of #103217 - mejrs:track, r=eholk 2022-11-01 21:09:45 +00:00
rustc_middle Rollup merge of #104059 - Rejyr:rustc_middle-lint-typo, r=petrochenkov 2022-11-07 09:46:27 +09:00
rustc_mir_build Rollup merge of #103984 - V0ldek:103974-refactor-mk_const, r=BoxyUwU 2022-11-05 00:02:06 +01:00
rustc_mir_dataflow Some tracing and comment cleanups 2022-11-04 17:10:07 +00:00
rustc_mir_transform Auto merge of #103975 - oli-obk:tracing, r=jackh726 2022-11-06 02:21:34 +00:00
rustc_monomorphize Fix ICE when negative impl is collected during eager mono 2022-11-04 03:08:28 +00:00
rustc_parse Rollup merge of #103986 - compiler-errors:oh-no-bad-block-should-not-have-label, r=lcnr 2022-11-07 18:35:24 +05:30
rustc_parse_format Fix rustc_parse_format spans following escaped utf-8 multibyte chars 2022-10-27 18:20:56 +00:00
rustc_passes Auto merge of #103720 - crlf0710:most_translation_attr, r=compiler-errors 2022-11-06 11:23:24 +00:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_query_impl Merge QueryDescription into QueryConfig 2022-11-05 16:24:13 +01:00
rustc_query_system Merge QueryDescription into QueryConfig 2022-11-05 16:24:13 +01:00
rustc_resolve Rollup merge of #103927 - fee1-dead-contrib:E0425-no-typo-when-pattern-matching, r=cjgillot 2022-11-05 18:06:06 +01:00
rustc_save_analysis Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_serialize rustdoc: use ThinVec for cleaned generics 2022-11-02 16:17:22 -07:00
rustc_session Rollup merge of #103660 - ozkanonur:master, r=jyn514 2022-11-05 11:31:28 +05:30
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Rollup merge of #97971 - Soveu:varargs, r=jackh726 2022-10-30 19:31:36 -07:00
rustc_symbol_mangling Refactor tcx mk_const parameters. 2022-11-04 20:33:32 +00:00
rustc_target LLVM 16: Update RISCV data layout 2022-11-06 19:03:22 +00:00
rustc_trait_selection Auto merge of #99943 - compiler-errors:tuple-trait, r=jackh726 2022-11-06 17:48:33 +00:00
rustc_traits Refactor tcx mk_const parameters. 2022-11-04 20:33:32 +00:00
rustc_transmute Auto merge of #103831 - chenyukang:yukang/fix-103751-ice, r=nagisa 2022-11-05 13:48:30 +00:00
rustc_ty_utils Refactor tcx mk_const parameters. 2022-11-04 20:33:32 +00:00
rustc_type_ir deprecate DelaySpanBugEmitted and use ErrorGuaranteed directly 2022-11-02 23:15:49 +08:00