Make the error message better

This commit is contained in:
Michael Goulet 2024-01-18 17:20:39 +00:00
parent 16cbdd0321
commit e65abc0ea5
5 changed files with 72 additions and 13 deletions

View file

@ -1501,6 +1501,16 @@ pub struct NotSupportedDelegation<'a> {
pub callee_span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_method_should_return_future)]
pub struct MethodShouldReturnFuture {
#[primary_span]
pub span: Span,
pub method_name: Symbol,
#[note]
pub trait_item_span: Option<Span>,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_unused_generic_parameter)]
pub(crate) struct UnusedGenericParameter {