hir-analysis: make where-clause-on-main diagnostic translatable
This commit is contained in:
@@ -316,6 +316,15 @@ pub struct AutoDerefReachedRecursionLimit<'a> {
|
||||
pub crate_name: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_where_clause_on_main, code = "E0646")]
|
||||
pub(crate) struct WhereClauseOnMain {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
#[label]
|
||||
pub generics_span: Option<Span>,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_track_caller_on_main)]
|
||||
pub(crate) struct TrackCallerOnMain {
|
||||
|
||||
Reference in New Issue
Block a user