Add translatable diagnostic for invalid imports
This commit is contained in:
parent
8fa9003621
commit
50c971a0b7
3 changed files with 16 additions and 5 deletions
|
@ -605,3 +605,11 @@ pub(crate) struct ChangeImportBindingSuggestion {
|
|||
pub(crate) span: Span,
|
||||
pub(crate) suggestion: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_imports_cannot_refer_to)]
|
||||
pub(crate) struct ImportsCannotReferTo<'a> {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) what: &'a str,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue