diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-09-13 17:25:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 17:25:11 +0000 |
commit | 9ae947654feaa9f26ebfb7978f3d0440b11ea5f7 (patch) | |
tree | 8de0752b1909fd58497ac8f5dd9551a53dbb709b /vendor/github.com/modern-go/reflect2/go_above_118.go | |
parent | 73422de08d85d790397fe821f5fc6d5a05e30643 (diff) | |
download | podman-9ae947654feaa9f26ebfb7978f3d0440b11ea5f7.tar.gz podman-9ae947654feaa9f26ebfb7978f3d0440b11ea5f7.tar.bz2 podman-9ae947654feaa9f26ebfb7978f3d0440b11ea5f7.zip |
Bump github.com/json-iterator/go from 1.1.11 to 1.1.12
Bumps [github.com/json-iterator/go](https://github.com/json-iterator/go) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/json-iterator/go/releases)
- [Commits](https://github.com/json-iterator/go/compare/v1.1.11...v1.1.12)
---
updated-dependencies:
- dependency-name: github.com/json-iterator/go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/modern-go/reflect2/go_above_118.go')
-rw-r--r-- | vendor/github.com/modern-go/reflect2/go_above_118.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/modern-go/reflect2/go_above_118.go b/vendor/github.com/modern-go/reflect2/go_above_118.go new file mode 100644 index 000000000..2b4116f6c --- /dev/null +++ b/vendor/github.com/modern-go/reflect2/go_above_118.go @@ -0,0 +1,23 @@ +//+build go1.18 + +package reflect2 + +import ( + "unsafe" +) + +// m escapes into the return value, but the caller of mapiterinit +// doesn't let the return value escape. +//go:noescape +//go:linkname mapiterinit reflect.mapiterinit +func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) + +func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { + var it hiter + mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) + return &UnsafeMapIterator{ + hiter: &it, + pKeyRType: type2.pKeyRType, + pElemRType: type2.pElemRType, + } +}
\ No newline at end of file |