rust/compiler/rustc_errors/src
Matthias Krüger 3035ccbcb9
Rollup merge of #108031 - jieyouxu:issue-108019, r=estebank
Don't recover lifetimes/labels containing emojis as character literals

Fixes #108019.

Note that at the time of this commit, `unic-emoji-char` seems to have data tables only up to Unicode 5.0, but Unicode is already newer than this.

A newer emoji such as `🥺` will not be recognized as an emoji but older emojis such as `🐱` will.

This PR leaves a couple of FIXMEs where `unic_emoji_char::is_emoji` is used.
2023-02-18 13:26:46 +01:00
..
json Introduce -Zterminal-urls to use OSC8 for error codes 2023-02-09 14:52:54 +00:00
annotate_snippet_emitter_writer.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
diagnostic_builder.rs Use AddToDiagnostic for "use latest edition" help 2023-02-01 21:49:45 +01:00
diagnostic_impls.rs Implement IntoDiagnosticArg for ast::Visibility 2023-02-01 21:50:31 +01:00
diagnostic.rs rebase and review comments 2023-02-14 20:22:10 +00:00
emitter.rs More accurate spans for arg removal suggestion 2023-02-14 20:22:09 +00:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs Introduce -Zterminal-urls to use OSC8 for error codes 2023-02-09 14:52:54 +00:00
lib.rs Rollup merge of #108031 - jieyouxu:issue-108019, r=estebank 2023-02-18 13:26:46 +01:00
lock.rs
registry.rs
snippet.rs
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Fix tests 2023-01-09 00:23:27 +01:00
translation.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00