diff --git a/std/jule/sema/sema.jule b/std/jule/sema/sema.jule index 4a65ed863..f3244fe08 100644 --- a/std/jule/sema/sema.jule +++ b/std/jule/sema/sema.jule @@ -2094,11 +2094,11 @@ impl Sema { fn pushCycleError(self, &st1: str, &st2: str, mut &message: StrBuilder) { const Padding = 7 refersTo := Logf(LogMsg.RefersTo, st1, st2) - mut buf := unsafe { message.Buf() } + m := message.Str() message.WriteStr(strings::Repeat(" ", Padding)) message.WriteStr(refersTo) message.WriteByte('\n') - message.Write(buf) + message.WriteStr(m) } fn checkCrossCycle(self, &st1: &Struct, &st2: &Struct, mut &message: StrBuilder): bool { diff --git a/std/jule/sema/symbol.jule b/std/jule/sema/symbol.jule index 575acd012..bcc976428 100644 --- a/std/jule/sema/symbol.jule +++ b/std/jule/sema/symbol.jule @@ -544,11 +544,11 @@ impl symbolBuilder { LogMsg.RefersTo, self.getAsLinkPath(sb.table.File.Dir()), self.getAsLinkPath(path)) - buf := unsafe { message.Buf() } + m := message.Str() message.WriteStr(strings::Repeat(" ", Padding)) message.WriteStr(refersTo) message.WriteByte('\n') - message.Write(buf) + message.WriteStr(m) } fn pushCrossCycleError(mut &self, &target: &symbolBuilder, &imp: &ImportInfo, &errorToken: &Token) { diff --git a/std/jule/sema/type.jule b/std/jule/sema/type.jule index fc4c2f578..ead8b766a 100644 --- a/std/jule/sema/type.jule +++ b/std/jule/sema/type.jule @@ -850,14 +850,14 @@ impl typeChecker { ret "" } } - buf := unsafe { message.Buf() } + m := message.Str() def1Ident := getIdent(def1) def2Ident := getIdent(def2) refersTo := Logf(LogMsg.RefersTo, def1Ident, def2Ident) message.WriteStr(strings::Repeat(" ", Padding)) message.WriteStr(refersTo) message.WriteByte('\n') - message.Write(buf) + message.WriteStr(m) } fn checkCrossCycle(self, decl: any, mut &message: StrBuilder): bool {