File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -471,8 +471,6 @@ pub enum Error {
471
471
ResolveArraySizeError ( #[ from] proc:: ResolveArraySizeError ) ,
472
472
#[ error( "entry point with stage {0:?} and name '{1}' not found" ) ]
473
473
EntryPointNotFound ( ir:: ShaderStage , String ) ,
474
- #[ error( "Internal error: reached unreachable code: {0}" ) ]
475
- Unreachable ( String ) ,
476
474
}
477
475
478
476
#[ derive( PartialEq , Eq , Hash ) ]
Original file line number Diff line number Diff line change @@ -343,9 +343,7 @@ impl<W: fmt::Write> super::Writer<'_, W> {
343
343
& temp_resolution
344
344
}
345
345
StoreValue :: TempColumnAccess { .. } => {
346
- return Err ( Error :: Unreachable (
347
- "attempting write_storage_store for TempColumnAccess" . into ( ) ,
348
- ) ) ;
346
+ unreachable ! ( "attempting write_storage_store for TempColumnAccess" ) ;
349
347
}
350
348
} ;
351
349
match * ty_resolution. inner_with ( & module. types ) {
@@ -409,9 +407,9 @@ impl<W: fmt::Write> super::Writer<'_, W> {
409
407
// working around the borrow checker in `self.write_expr`
410
408
let var_name = & self . names [ & NameKey :: GlobalVariable ( var_handle) ] ;
411
409
let StoreValue :: TempAccess { member_index, .. } = value else {
412
- return Err ( Error :: Unreachable (
413
- "write_storage_store within_struct but not TempAccess" . into ( ) ,
414
- ) ) ;
410
+ unreachable ! (
411
+ "write_storage_store within_struct but not TempAccess"
412
+ ) ;
415
413
} ;
416
414
let column_value = StoreValue :: TempColumnAccess {
417
415
depth : level. 0 , // note not incrementing, b/c no temp
You can’t perform that action at this time.
0 commit comments