@@ -152,7 +152,7 @@ const CheckNamedStep = struct {
152152
153153 fn make (step : * Step , _ : * std.Progress.Node ) ! void {
154154 const b = step .owner ;
155- const self = @fieldParentPtr (CheckNamedStep , "step" , step );
155+ const self : * CheckNamedStep = @alignCast ( @ fieldParentPtr ("step" , step ) );
156156 const ex = self .exercise ;
157157
158158 const stderr_file = try fs .cwd ().openFile (
@@ -204,7 +204,7 @@ const CheckStep = struct {
204204
205205 fn make (step : * Step , _ : * std.Progress.Node ) ! void {
206206 const b = step .owner ;
207- const self = @fieldParentPtr (CheckStep , "step" , step );
207+ const self : * CheckStep = @alignCast ( @ fieldParentPtr ("step" , step ) );
208208 const exercises = self .exercises ;
209209
210210 const stderr_file = try fs .cwd ().openFile (
@@ -327,7 +327,7 @@ const FailStep = struct {
327327
328328 fn make (step : * Step , _ : * std.Progress.Node ) ! void {
329329 const b = step .owner ;
330- const self = @fieldParentPtr (FailStep , "step" , step );
330+ const self : * FailStep = @alignCast ( @ fieldParentPtr ("step" , step ) );
331331
332332 try step .result_error_msgs .append (b .allocator , self .error_msg );
333333 return error .MakeFailed ;
@@ -370,7 +370,7 @@ const HealStep = struct {
370370
371371 fn make (step : * Step , _ : * std.Progress.Node ) ! void {
372372 const b = step .owner ;
373- const self = @fieldParentPtr (HealStep , "step" , step );
373+ const self : * HealStep = @alignCast ( @ fieldParentPtr ("step" , step ) );
374374
375375 return heal (b .allocator , self .exercises , self .work_path );
376376 }
0 commit comments