Just totally fully deny late-bound consts
This commit is contained in:
parent
2e6fc42541
commit
3862095bd2
18 changed files with 110 additions and 30 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue