Fix error by linter

This commit is contained in:
Masaaki Goshima 2021-02-11 01:21:35 +09:00
parent 20d1a5ada2
commit 03be923662
2 changed files with 1 additions and 6 deletions

View File

@ -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)

View File

@ -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