Skip to content

Commit 37f37dc

Browse files
Emit multiple function pointer errors from const-checker
1 parent 51fbd55 commit 37f37dc

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_mir/src/transform/check_consts

1 file changed

+0
-4
lines changed

compiler/rustc_mir/src/transform/check_consts/ops.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ impl NonConstOp for FnCallUnstable {
161161
#[derive(Debug)]
162162
pub struct FnPtrCast;
163163
impl NonConstOp for FnPtrCast {
164-
const STOPS_CONST_CHECKING: bool = true;
165-
166164
fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status {
167165
if ccx.const_kind() != hir::ConstContext::ConstFn {
168166
Status::Allowed
@@ -560,8 +558,6 @@ pub mod ty {
560558
#[derive(Debug)]
561559
pub struct FnPtr(pub mir::LocalKind);
562560
impl NonConstOp for FnPtr {
563-
const STOPS_CONST_CHECKING: bool = true;
564-
565561
fn importance(&self) -> DiagnosticImportance {
566562
match self.0 {
567563
mir::LocalKind::Var | mir::LocalKind::Temp => DiagnosticImportance::Secondary,

0 commit comments

Comments
 (0)