From 03be92366240ee60cffff5d113853b260c8e7bee Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Thu, 11 Feb 2021 01:21:35 +0900 Subject: [PATCH] Fix error by linter --- decode.go | 1 + rtype.go | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) 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