Migrated Unallowed function pointer calls in interpreter/ops
This commit is contained in:
parent
6af8e46a9a
commit
70ea98633e
3 changed files with 12 additions and 5 deletions
|
@ -95,3 +95,11 @@ pub(crate) struct MaxNumNodesExceeded {
|
|||
pub span: Span,
|
||||
pub s: String,
|
||||
}
|
||||
|
||||
#[derive(SessionDiagnostic)]
|
||||
#[error(const_eval::unallowed_fn_pointer_call)]
|
||||
pub(crate) struct UnallowedFnPointerCall {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub kind: ConstContext,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue