Fix error message for env!
when env var is not valid Unicode
This commit is contained in:
parent
66de611196
commit
0bbaa2505b
9 changed files with 92 additions and 23 deletions
|
@ -458,6 +458,14 @@ pub(crate) enum EnvNotDefined<'a> {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_env_not_unicode)]
|
||||
pub(crate) struct EnvNotUnicode {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) var: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_format_requires_string)]
|
||||
pub(crate) struct FormatRequiresString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue