Make the error message better
This commit is contained in:
parent
16cbdd0321
commit
e65abc0ea5
5 changed files with 72 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue