1
Fork 0

Migrated Unallowed function pointer calls in interpreter/ops

This commit is contained in:
nidnogg 2022-08-18 02:11:52 -03:00
parent 6af8e46a9a
commit 70ea98633e
3 changed files with 12 additions and 5 deletions

View file

@ -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,
}