hir-analysis: make where-clause-on-main diagnostic translatable

This commit is contained in:
Tshepang Mbambo
2023-02-23 01:50:38 +02:00
parent fdbc4329cb
commit ada4e9468e
3 changed files with 16 additions and 10 deletions

View File

@@ -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 {