rust/compiler
Yuki Okushi 05cd26b22d
Rollup merge of #104345 - fmease:fix-up-a-fluent-message, r=compiler-errors
Fix up a Fluent message

Fix up a Fluent message which contained arrows `->` after [selectors](https://projectfluent.org/fluent/guide/selectors.html). The original author probably thought that they were required as part of the selector syntax but in reality they were interpreted as literal text and actually showed up in the emitted diagnostic.

This wasn't caught during the diagnostic migration since the branch constructing the diagnostic in question (`rustc_infer::errors::LifetimeMismatchLabels::Normal`) was not exercised by the UI test suite. I've added two more test cases to do so (one testing `LifetimeMismatchLabels::Normal` where `hir_equal == true` and one where `hir_equal == false`).

Diff visualizing the `->` bug (`master` vs `fix-up-a-fluent-message`):

```diff
 error[E0623]: lifetime mismatch
   --> src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs:39:30
    |
 39 | fn badboi3<'in_, 'out, T>(a: Foo<'in_, 'out, (&'in_ T, &'out T)>, sadness: &'in_ T) {
    |                              ^^^^^^^^^^^^^^^^^-------^^-------^^
    |                              |                |
    |                              |                these two types are declared with different lifetimes...
-   |                              ...but data->  from `a` flows->  into `a` here
+   |                              ...but data from `a` flows into `a` here
```
2022-11-13 16:41:46 +09:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Introduce ExprKind::IncludedBytes 2022-11-11 16:31:32 +00:00
rustc_ast_lowering Introduce ExprKind::IncludedBytes 2022-11-11 16:31:32 +00: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 Introduce ExprKind::IncludedBytes 2022-11-11 16:31:32 +00:00
rustc_attr Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_borrowck Rollup merge of #103960 - AndyJado:var_path_only_diag, r=davidtwco 2022-11-11 12:12:30 -05:00
rustc_builtin_macros Auto merge of #103812 - clubby789:improve-include-bytes, r=petrochenkov 2022-11-12 14:30:34 +00:00
rustc_codegen_cranelift Fix rustdoc --version when used with download-rustc 2022-11-09 02:54:51 -06:00
rustc_codegen_gcc Add type_array to BaseTypeMethods 2022-11-06 14:18:36 +05:30
rustc_codegen_llvm Rollup merge of #104110 - krasimirgg:msan-16, r=nagisa 2022-11-12 17:25:00 +01:00
rustc_codegen_ssa linker: Link profiler_builtins even if it's marked as NotLinked 2022-11-12 23:02:33 +03:00
rustc_const_eval Rollup merge of #103865 - compiler-errors:fallback-has-occurred-tracking, r=eholk 2022-11-08 11:23:51 +05:30
rustc_data_structures Update several crates for improved support of the new targets 2022-11-05 12:19:55 +01:00
rustc_driver Rollup merge of #104184 - jyn514:rustdoc-version, r=davidtwco 2022-11-09 15:39:07 -05:00
rustc_error_codes Rollup merge of #103924 - PeteDevoy:patch-1, r=estebank 2022-11-11 20:51:39 +05:30
rustc_error_messages fix up a fluent message 2022-11-13 04:16:08 +01:00
rustc_errors Rollup merge of #103970 - oli-obk:unhide_unknown_spans, r=estebank 2022-11-12 12:02:51 +05:30
rustc_expand Auto merge of #103812 - clubby789:improve-include-bytes, r=petrochenkov 2022-11-12 14:30:34 +00:00
rustc_feature Rollup merge of #104117 - crlf0710:update_feature_gate, r=jackh726 2022-11-12 17:25:01 +01: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 #104310 - Dylan-DPC:rollup-wgt1z4a, r=Dylan-DPC 2022-11-12 08:03:01 +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 #104261 - compiler-errors:formal-and-expected-differ, r=estebank 2022-11-12 17:25:02 +01:00
rustc_incremental Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_index
rustc_infer Rollup merge of #104206 - compiler-errors:ocx-more-2, r=lcnr 2022-11-12 12:02:52 +05:30
rustc_interface Fix rustdoc --version when used with download-rustc 2022-11-09 02:54:51 -06:00
rustc_lexer Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matklad 2022-11-09 19:21:22 +05:30
rustc_lint Auto merge of #103530 - cjgillot:hir-lifetimes-direct, r=estebank 2022-11-12 05:22:17 +00: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 Auto merge of #103530 - cjgillot:hir-lifetimes-direct, r=estebank 2022-11-12 05:22:17 +00:00
rustc_mir_build Use const_error_with_guaranteed more 2022-11-10 05:39:15 +00:00
rustc_mir_dataflow Some tracing and comment cleanups 2022-11-04 17:10:07 +00:00
rustc_mir_transform Don't ICE when encountering ConstKind::Error in RequiredConstsVisitor 2022-11-10 05:14:04 +00:00
rustc_monomorphize Fix ICE when negative impl is collected during eager mono 2022-11-04 03:08:28 +00:00
rustc_parse Auto merge of #103812 - clubby789:improve-include-bytes, r=petrochenkov 2022-11-12 14:30:34 +00:00
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 #103812 - clubby789:improve-include-bytes, r=petrochenkov 2022-11-12 14:30:34 +00:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy privacy: Check effective visibility invariants 2022-11-05 16:25:41 +04:00
rustc_query_impl Make AbsoluteBytePos a u64. 2022-11-08 18:47:26 +00:00
rustc_query_system Rename Ctxt and CTX to Tcx and Qcx 2022-11-06 13:25:06 +01:00
rustc_resolve Rollup merge of #103970 - oli-obk:unhide_unknown_spans, r=estebank 2022-11-12 12:02:51 +05:30
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 Add --print=split-debuginfo 2022-11-07 16:11:32 +01:00
rustc_smir
rustc_span Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obk 2022-11-12 12:02:50 +05:30
rustc_symbol_mangling Add an optional Span to BrAnon and use it to print better error for HRTB error from generator interior 2022-11-07 17:39:29 -05:00
rustc_target Add no_std AArch64 support for the QNX Neutrino (nto) 7.1 RTOS 2022-11-11 10:44:48 +01:00
rustc_trait_selection Rollup merge of #104206 - compiler-errors:ocx-more-2, r=lcnr 2022-11-12 12:02:52 +05:30
rustc_traits make dropck_outlives into a proper canonicalized type query 2022-11-09 22:58:39 +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 Use const_error_with_guaranteed more 2022-11-10 05:39:15 +00:00
rustc_type_ir deprecate DelaySpanBugEmitted and use ErrorGuaranteed directly 2022-11-02 23:15:49 +08:00