• Matthew Dempsky's avatar
    cmd/compile: simplify error sorting · a5b7a8d6
    Matthew Dempsky authored
    Errors have unique seq values (their index within the errors slice),
    so errcmp never needs to fallback to sorting by message text.
    Moreover, comparing by original index is exactly the purpose of using
    a stable sort algorithm (and sort.Stable was added in Go 1.2), so we
    really only need to compare by lineno.
    
    Change-Id: I7f534b72a05d899ae9788dc7ef0541dd92a8b578
    Reviewed-on: https://go-review.googlesource.com/19929
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    a5b7a8d6
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...