mirror of https://github.com/goccy/go-json.git
Fix error by linter
This commit is contained in:
parent
20d1a5ada2
commit
03be923662
|
@ -70,6 +70,7 @@ func unmarshalNoEscape(data []byte, v interface{}) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:staticcheck
|
||||||
//go:nosplit
|
//go:nosplit
|
||||||
func noescape(p unsafe.Pointer) unsafe.Pointer {
|
func noescape(p unsafe.Pointer) unsafe.Pointer {
|
||||||
x := uintptr(p)
|
x := uintptr(p)
|
||||||
|
|
6
rtype.go
6
rtype.go
|
@ -244,12 +244,6 @@ func (t *rtype) Out(i int) reflect.Type {
|
||||||
return rtype_Out(t, i)
|
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:linkname rtype2type reflect.toType
|
||||||
//go:noescape
|
//go:noescape
|
||||||
func rtype2type(t *rtype) reflect.Type
|
func rtype2type(t *rtype) reflect.Type
|
||||||
|
|
Loading…
Reference in New Issue