On Fri, Jun 12, 2020 at 9:46 AM 'Axel Wagner' via golang-nuts <golang-nuts@googlegroups.com> wrote: > > AIUI: The safety rules haven't changed. How the compiler interprets them has. > Previously, it interpreted them so as to allow multiple chained conversions. > Now it doesn't.
Yes. Ian > On Fri, Jun 12, 2020 at 2:28 PM T L <tapir....@gmail.com> wrote: >> >> >> Package unsafe's safety rules allow converting an unsafe.Pointer into >> uintptr when calling certain functions. Previously, in some cases, the >> compiler allowed multiple chained conversions (for example, >> syscall.Syscall(…, uintptr(uintptr(ptr)), …)). The compiler now requires >> exactly one conversion. Code that used multiple conversions should be >> updated to satisfy the safety rules. >> >> >> I didn't find the difference from Go 1.14. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/0f62c576-a1f9-467e-b99c-42f01edaa452o%40googlegroups.com. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CAEkBMfGcW8%2BBC2g2JAcwJyQKxiPDxF%3DfJG%3DJJVxx7PHSk3_xkQ%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcX_pTyuuGLWcaDfY2%3Dc1x8Tb8KbiTqU9qV8Q7xQfa7bog%40mail.gmail.com.