Move associated type bounds check to ast lowering
This makes the check for when associated type bounds more accurate
This commit is contained in:
parent
b869e84e58
commit
e7c490892f
12 changed files with 171 additions and 139 deletions
|
@ -79,6 +79,14 @@ pub struct MisplacedImplTrait<'a> {
|
|||
pub position: DiagnosticArgFromDisplay<'a>,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ast_lowering_misplaced_assoc_ty_binding)]
|
||||
pub struct MisplacedAssocTyBinding<'a> {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub position: DiagnosticArgFromDisplay<'a>,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic, Clone, Copy)]
|
||||
#[diag(ast_lowering_rustc_box_attribute_error)]
|
||||
pub struct RustcBoxAttributeError {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue