File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
compiler/rustc_mir/src/transform/check_consts Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ impl NonConstOp for FnCallUnstable {
161
161
#[ derive( Debug ) ]
162
162
pub struct FnPtrCast ;
163
163
impl NonConstOp for FnPtrCast {
164
- const STOPS_CONST_CHECKING : bool = true ;
165
-
166
164
fn status_in_item ( & self , ccx : & ConstCx < ' _ , ' _ > ) -> Status {
167
165
if ccx. const_kind ( ) != hir:: ConstContext :: ConstFn {
168
166
Status :: Allowed
@@ -560,8 +558,6 @@ pub mod ty {
560
558
#[ derive( Debug ) ]
561
559
pub struct FnPtr ( pub mir:: LocalKind ) ;
562
560
impl NonConstOp for FnPtr {
563
- const STOPS_CONST_CHECKING : bool = true ;
564
-
565
561
fn importance ( & self ) -> DiagnosticImportance {
566
562
match self . 0 {
567
563
mir:: LocalKind :: Var | mir:: LocalKind :: Temp => DiagnosticImportance :: Secondary ,
You can’t perform that action at this time.
0 commit comments