1
Fork 0

move CMSE validation to hir_analysis

This commit is contained in:
Folkert 2024-07-17 16:47:03 +02:00
parent 8a3dd7fb5f
commit 7b63734961
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
13 changed files with 363 additions and 197 deletions

View file

@ -1682,3 +1682,28 @@ pub struct InvalidReceiverTy<'tcx> {
#[note]
#[help]
pub struct EffectsWithoutNextSolver;
#[derive(Diagnostic)]
#[diag(hir_analysis_cmse_call_inputs_stack_spill, code = E0798)]
#[note]
pub struct CmseCallInputsStackSpill {
#[primary_span]
#[label]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_cmse_call_output_stack_spill, code = E0798)]
#[note]
pub struct CmseCallOutputStackSpill {
#[primary_span]
#[label]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_cmse_call_generic, code = E0798)]
pub struct CmseCallGeneric {
#[primary_span]
pub span: Span,
}