@@ -3159,7 +3159,7 @@ pub fn addModuleErrorMsg(mod: *Module, eb: *ErrorBundle.Wip, module_err_msg: Mod
3159
3159
const rt_file_path = try module_reference .src_loc .file_scope .fullPath (gpa );
3160
3160
defer gpa .free (rt_file_path );
3161
3161
ref_traces .appendAssumeCapacity (.{
3162
- .decl_name = try eb .addString (ip . stringToSlice ( module_reference .decl )),
3162
+ .decl_name = try eb .addString (module_reference .decl . toSlice ( ip )),
3163
3163
.src_loc = try eb .addSourceLocation (.{
3164
3164
.src_path = try eb .addString (rt_file_path ),
3165
3165
.span_start = span .start ,
@@ -4074,8 +4074,7 @@ fn workerCheckEmbedFile(
4074
4074
fn detectEmbedFileUpdate (comp : * Compilation , embed_file : * Module.EmbedFile ) ! void {
4075
4075
const mod = comp .module .? ;
4076
4076
const ip = & mod .intern_pool ;
4077
- const sub_file_path = ip .stringToSlice (embed_file .sub_file_path );
4078
- var file = try embed_file .owner .root .openFile (sub_file_path , .{});
4077
+ var file = try embed_file .owner .root .openFile (embed_file .sub_file_path .toSlice (ip ), .{});
4079
4078
defer file .close ();
4080
4079
4081
4080
const stat = try file .stat ();
@@ -4444,7 +4443,7 @@ fn reportRetryableEmbedFileError(
4444
4443
const ip = & mod .intern_pool ;
4445
4444
const err_msg = try Module .ErrorMsg .create (gpa , src_loc , "unable to load '{}{s}': {s}" , .{
4446
4445
embed_file .owner .root ,
4447
- ip . stringToSlice ( embed_file .sub_file_path ),
4446
+ embed_file .sub_file_path . toSlice ( ip ),
4448
4447
@errorName (err ),
4449
4448
});
4450
4449
0 commit comments