Implement MIR const trait stability checks
This commit is contained in:
@@ -121,6 +121,14 @@ pub(crate) struct UnstableConstFn {
|
||||
pub def_path: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(const_eval_unstable_const_trait)]
|
||||
pub(crate) struct UnstableConstTrait {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub def_path: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(const_eval_unstable_intrinsic)]
|
||||
pub(crate) struct UnstableIntrinsic {
|
||||
@@ -139,9 +147,9 @@ pub(crate) struct UnstableIntrinsic {
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(const_eval_unmarked_const_fn_exposed)]
|
||||
#[diag(const_eval_unmarked_const_item_exposed)]
|
||||
#[help]
|
||||
pub(crate) struct UnmarkedConstFnExposed {
|
||||
pub(crate) struct UnmarkedConstItemExposed {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub def_path: String,
|
||||
|
||||
Reference in New Issue
Block a user