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 {
161161#[ derive( Debug ) ]
162162pub struct FnPtrCast ;
163163impl 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 ,
You can’t perform that action at this time.
0 commit comments