Comparable type no longer has a special method '=='.
Change-Id: I152f324d83343a66300050479181a6607fb7ca26
Reviewed-on: https://go-review.googlesource.com/c/go/+/338409
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
if ipkg == "" {
ipkg = inter.pkgpath.name()
}
- if iname == "==" {
- // Don't need '==' method right now (from comparable),
- // just fill in with a random pointer for now.
- if k == 0 {
- fun0 = unsafe.Pointer(m)
- } else {
- methods[k] = unsafe.Pointer(m)
- }
- continue imethods
- }
for ; j < nt; j++ {
t := &xmhdr[j]
tname := typ.nameOff(t.name)