diff --git a/decode.go b/decode.go index 8419d82..c235ff7 100644 --- a/decode.go +++ b/decode.go @@ -70,6 +70,7 @@ func unmarshalNoEscape(data []byte, v interface{}) error { return nil } +//nolint:staticcheck //go:nosplit func noescape(p unsafe.Pointer) unsafe.Pointer { x := uintptr(p) diff --git a/rtype.go b/rtype.go index fd2a895..a4cbf73 100644 --- a/rtype.go +++ b/rtype.go @@ -244,12 +244,6 @@ func (t *rtype) Out(i int) reflect.Type { return rtype_Out(t, i) } -//go:linkname rtype_escape reflect.(*rtype).Kind -func rtype_escape(*rtype) reflect.Kind -func (t *rtype) escape() { - rtype_escape(t) -} - //go:linkname rtype2type reflect.toType //go:noescape func rtype2type(t *rtype) reflect.Type