mirror of
https://github.com/golang/go
synced 2024-11-26 07:27:59 -07:00
[dev.typeparams] cmd/compile: remove now-unneeded check for '==' method for comparable type
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>
This commit is contained in:
parent
3e7571f6ff
commit
27283d208f
@ -214,16 +214,6 @@ imethods:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user