1
Fork 0

Migration on ops.rs for unstable const functions

This commit is contained in:
nidnogg 2022-08-18 22:49:59 -03:00
parent 70ea98633e
commit 33e8aaf830
3 changed files with 14 additions and 6 deletions

View file

@ -103,3 +103,11 @@ pub(crate) struct UnallowedFnPointerCall {
pub span: Span,
pub kind: ConstContext,
}
#[derive(SessionDiagnostic)]
#[error(const_eval::unstable_const_fn)]
pub(crate) struct UnstableConstFn {
#[primary_span]
pub span: Span,
pub def_id: String,
}