1
Fork 0

Just totally fully deny late-bound consts

This commit is contained in:
Michael Goulet 2024-07-20 17:58:05 -04:00
parent 2e6fc42541
commit 3862095bd2
18 changed files with 110 additions and 30 deletions

View file

@ -69,6 +69,13 @@ pub struct ForbiddenBound {
pub spans: Vec<Span>,
}
#[derive(Diagnostic)]
#[diag(ast_passes_forbidden_const_param)]
pub struct ForbiddenConstParam {
#[primary_span]
pub const_param_spans: Vec<Span>,
}
#[derive(Diagnostic)]
#[diag(ast_passes_fn_param_too_many)]
pub struct FnParamTooMany {