1
Fork 0

Move an impl-Trait check from AST validation to AST lowering

This commit is contained in:
León Orell Valerian Liehr 2024-10-27 06:21:24 +01:00
parent 6faf0bd3e5
commit 442f39582d
No known key found for this signature in database
GPG key ID: D17A07215F68E713
13 changed files with 78 additions and 153 deletions

View file

@ -418,13 +418,6 @@ pub(crate) struct TraitObjectBound {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(ast_passes_impl_trait_path, code = E0667)]
pub(crate) struct ImplTraitPath {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(ast_passes_nested_impl_trait, code = E0666)]
pub(crate) struct NestedImplTrait {