diff options
| author | Urgau <urgau@numericable.fr> | 2023-05-13 18:33:19 +0200 | 
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-05-27 00:18:28 +0200 | 
| commit | 7f99c7d3e64143bdeda8f519a656ad1963162fb2 (patch) | |
| tree | 27fe55d50d88c891cd299a3d08c64ebafeeab4b1 /compiler/rustc_lint/messages.ftl | |
| parent | a0612d90b08e2ee3fac4e807f56e51dd665ec882 (diff) | |
| download | rust-7f99c7d3e64143bdeda8f519a656ad1963162fb2.tar.gz rust-7f99c7d3e64143bdeda8f519a656ad1963162fb2.zip | |
Add invalid_from_utf8 analogous to invalid_from_utf8_unchecked
Diffstat (limited to 'compiler/rustc_lint/messages.ftl')
| -rw-r--r-- | compiler/rustc_lint/messages.ftl | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/compiler/rustc_lint/messages.ftl b/compiler/rustc_lint/messages.ftl index 35edb458478..e707ac41a05 100644 --- a/compiler/rustc_lint/messages.ftl +++ b/compiler/rustc_lint/messages.ftl @@ -305,6 +305,10 @@ lint_improper_ctypes_union_layout_reason = this union has unspecified layout lint_improper_ctypes_union_non_exhaustive = this union is non-exhaustive # FIXME: we should ordinalize $valid_up_to when we add support for doing so +lint_invalid_from_utf8_checked = calls to `{$method}` with a invalid literal always return an error + .label = the literal was valid UTF-8 up to the {$valid_up_to} bytes + +# FIXME: we should ordinalize $valid_up_to when we add support for doing so lint_invalid_from_utf8_unchecked = calls to `{$method}` with a invalid literal are undefined behavior .label = the literal was valid UTF-8 up to the {$valid_up_to} bytes | 
