Migration on ops.rs for unstable const functions
This commit is contained in:
parent
70ea98633e
commit
33e8aaf830
3 changed files with 14 additions and 6 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue