File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_builtin_macros/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ mod llvm_enzyme {
208208 }
209209 Annotatable :: Stmt ( stmt) => match & stmt. kind {
210210 ast:: StmtKind :: Item ( iitem) => ( iitem. vis . clone ( ) , iitem. ident . clone ( ) ) ,
211- _ => unreachable ! ( "stmt kind checked previously" ) ,
211+ _ => bug ! ( "stmt kind checked previously" ) ,
212212 } ,
213213 _ => {
214214 dcx. emit_err ( errors:: AutoDiffInvalidApplication { span : item. span ( ) } ) ;
@@ -337,13 +337,13 @@ mod llvm_enzyme {
337337 iitem. attrs . push ( inline_never. clone ( ) ) ;
338338 }
339339 }
340- _ => unreachable ! ( "stmt kind checked previously" ) ,
340+ _ => bug ! ( "stmt kind checked previously" ) ,
341341 } ;
342342
343343 Annotatable :: Stmt ( stmt. clone ( ) )
344344 }
345345 _ => {
346- unreachable ! ( "annotatable kind checked previously" )
346+ bug ! ( "annotatable kind checked previously" )
347347 }
348348 } ;
349349 // Now update for d_fn
@@ -387,7 +387,7 @@ mod llvm_enzyme {
387387 } ) )
388388 }
389389 _ => {
390- unreachable ! ( "item kind checked previously" )
390+ bug ! ( "item kind checked previously" )
391391 }
392392 } ;
393393
You can’t perform that action at this time.
0 commit comments