Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

Hackpad

We strive for making code editing in the browser a powerful, streamlined experience.
Collective - Host: opensource - https://opencollective.com/hackpad - Website: https://hackpad.org - Code: https://github.com/hack-pad

doc/go1.18: mention register ABI on ARM64 and PPC64

For #47694.

Change-Id: Ide378f4a34587027c3d84fed2126c5b9bd8f7287
Reviewed-on: https://go-review...

github.com/hack-pad/go - ba9f0f6665273ab5202d829ae4aa0c5fa2cebb32 authored almost 3 years ago by Cherry Mui <[email protected]>
[go] doc: document speedups to Trim[|Left|Right]

CL: #332771

Updates: #47694
Change-Id: I8c729084b7a8745ec73f87ef3c469edbd596ddb4
Reviewed-on: h...

github.com/hack-pad/go - aec5c2eed6e4342270ca778a29b50487f7922f83 authored almost 3 years ago by Jeremy Faller <[email protected]>
[go] doc: add new bufio functionality

cl/345570
cl/345569

Updates: #47694
Change-Id: I170af16d5fc9f022d3d29ed0772cfc3d02b8bbcf
Review...

github.com/hack-pad/go - 0f75a9ecdf3f320a22e52d9493b879c4a6ddc536 authored almost 3 years ago by Jeremy Faller <[email protected]>
cmd/go: temporarily skip TestScript/test_fuzz_minimize

This test is failing on the longtest builders.
Adding a skip temporarily until it can be diagnos...

github.com/hack-pad/go - ac0da79a676c852fee4939b79baf97224cd0b334 authored almost 3 years ago by Bryan C. Mills <[email protected]>
internal/fuzz: fix chunk swap mutator

When swapping two chunks of bytes in a slice, don't pick chunks which
extend beyond the end of t...

github.com/hack-pad/go - 80cb59c0c15d2391f7b8d2571121f8213df70f7b authored almost 3 years ago by Roland Shoemaker <[email protected]>
internal/fuzz: compute correct number of mutations

When reconstructing inputs, we miscalculated the number of mutations
that needed to be applied. ...

github.com/hack-pad/go - a94409660dbf05c1cdc2013aa2c7aa2489fe5c1c authored almost 3 years ago by Roland Shoemaker <[email protected]>
cmd/compile: don't run ComputeAddrTaken on imported generic functions

It causes a crash because of the unexpected XDOT operation. It's not
needed, since we will run C...

github.com/hack-pad/go - e8cda0a6c925668972ada40602ada08468fa90dc authored almost 3 years ago by Dan Scales <[email protected]>
cmd/go/internal/test: add dep from test pkg build to real pkg build

If we have to build a test package, and if the full set of packages
being tested imports the reg...

github.com/hack-pad/go - 2375b6edf376f97d0d8e3978fa3211788bc9b4dd authored almost 3 years ago by Ian Lance Taylor <[email protected]>
spec: various clarifications/fixes for method sets and interfaces

- fixed a typo in the method set section
- express in the syntax that ~T denotes an underlying t...

github.com/hack-pad/go - 24898d6948e1651aab909a5abccbfde64dc359cd authored almost 3 years ago by Robert Griesemer <[email protected]>
net: optimize ctxDone usage

Change-Id: I6db6fcf0ebe36da77af062114b5264405f15fee8
GitHub-Last-Rev: 80a97262bb220bb3958c94016e...

github.com/hack-pad/go - c4aae23d6426442402b3de0e5f7de1ef8da3842a authored almost 3 years ago by Mikhail Faraponov <[email protected]>
go/types: add test for imported constraints pre-1.18

This is a port of CL 363834 from types2 to go/types.

Change-Id: I32583ead4bce626e0761f4c3276780...

github.com/hack-pad/go - feb330dcdd86146f5c9b4e09d30e19fc920f78f4 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: use "implements" rather than "satisfies" in error messages

This is a port of CL 363839 from types2 to go/types.

Change-Id: I9efe412a6a602fd55170d1ee89c8e1...

github.com/hack-pad/go - 8d6c4e07fdd4a81c466450b51cda71a1bfab41fc authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove unneccesary tests in implements and lookup

This is a port of CL 363838 from types2 to go/types.

Change-Id: I03f4da86ea38209a73f567cc5d84e7...

github.com/hack-pad/go - 5d5f2b1e201fe9f3b641109ccd91b3ceae4cf460 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: implement Checker.implements

This is a port of CL 363837 from types2 to go/types. As usual, test
error messages had to be rep...

github.com/hack-pad/go - 9ea939be600df12fe51b201112cc12e741acef00 authored almost 3 years ago by Robert Findley <[email protected]>
cmd/link: relocate dwarf examiner helper to separate package

The linker DWARF test includes an "examiner" helper type (with
associated methods) that is used ...

github.com/hack-pad/go - 14c3f749bebafe10d60cf5a9b1f4ae6663ff862a authored almost 3 years ago by Than McIntosh <[email protected]>
spec: generalize method sets and interface types to type sets

This is the first of several CLs that update the existing
Go 1.17 spec for type parameters.

Thi...

github.com/hack-pad/go - f6647f2e3bc0b803a67c97a7d5d8733cefbd5d5b authored almost 3 years ago by Robert Griesemer <[email protected]>
test: make issue8606b test more robust

Use actual unmapped memory instead of small integers to make
pointers that will fault when acces...

github.com/hack-pad/go - d8f7a64519695f037cce8696c5c3b7216fd4a680 authored almost 3 years ago by Keith Randall <[email protected]>
go/types: better position for invalid slice indices error

This is a port of CL 363671 from types2 to go/types. Also adjust the
error message to match type...

github.com/hack-pad/go - f1cc5294290b33889d48a3185b3c3711531881e0 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: better position for "3-index slice of string" error

This is a port of CL 363670 from types2 to go/types.

Change-Id: I2ac3a5f86bb4eafddd2854e193083b...

github.com/hack-pad/go - 72f0976ac45fcb7f3fd6d47a3ac5c96a78edd59d authored almost 3 years ago by Robert Findley <[email protected]>
go/types: move match function to end of file (cleanup)

This is a port of CL 363669 from types2 to go/types.

Change-Id: Id1f375ff5708dab528144e30ce16d2...

github.com/hack-pad/go - 3404ee3e86b9f4eab55d2451dcd9db5b4cd9ed4a authored almost 3 years ago by Robert Findley <[email protected]>
go/types: allow slicing for operands with []byte|string type sets

This is a port of CL 363662 from types2 to go/types. An error message
was adjusted to be on the ...

github.com/hack-pad/go - ce7e5013a68ef4572b9fa439b1402145ef710631 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: optimize common case in structuralType

This is a port of CL 363668 from types2 to go/types.

Change-Id: Ic55acb2e27f57c33467cef2f687cd6...

github.com/hack-pad/go - 353cb71ea29e02a41f77b7576d658de4515e264d authored almost 3 years ago by Robert Findley <[email protected]>
go/types: simplify under() and fix a crash

This is a port of CL 363665 from types2 to go/types.

Change-Id: I20c4e20ab97f1e4de66a29095dc4a9...

github.com/hack-pad/go - 2463b4fcafbd59998ea4c81b0fd91a697ad02c15 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove tparamIsIface flag and corresponding dead code

This is a port of CL 363654 from types2 to go/types.

Change-Id: I64041615ccc7f11f2e4ae395b063ec...

github.com/hack-pad/go - b95bff0318150e0b2869079bf2c0068fb4bcb17c authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove asNamed

This is a port of CL 363441 from types2 to go/types, with an additional
adjustment in methodset....

github.com/hack-pad/go - 9115a7ba4a7e198befe26d69b740a34b495e1db5 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove a review comment in implicitTypeAndValue

This is a clean port of CL 363440 from types2 to go/types.

Change-Id: Ibbef41b5b599d5c88f712267...

github.com/hack-pad/go - e3b48af57560e730a512d79f9d338aafac61f944 authored almost 3 years ago by Robert Findley <[email protected]>
runtime: make faketime more robust against GC

When using faketime, only run the scavenger for one loop.
It tries to run for 1 ms, but with fak...

github.com/hack-pad/go - 0440fb833405a5c61ed0269af9c5897b03390bac authored almost 3 years ago by Ian Lance Taylor <[email protected]>
cmd/go: skip broken fuzz test

For #49047

Change-Id: If06ce033f7bfd23d640311f1be261afab8332028
Reviewed-on: https://go-review....

github.com/hack-pad/go - a218365faeed6d62d3becabf0c8700f0e0b3a734 authored almost 3 years ago by Roland Shoemaker <[email protected]>
go/types: set tparamsIsIface to true

This is a port of CL 363155 from types2 to go/types.

Change-Id: Ic24f8c88513599c8f4685f0b66d378...

github.com/hack-pad/go - 9a33945f2cc4b2108defdcdea80dc0ebe5af3c24 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: underlying type of a type parameter is its constraint interface

This is a port of CL 359016 from types2 to go/types. Some of the code
around untyped nil differe...

github.com/hack-pad/go - 88474d47ddeb5714a18923048beaa5dafa7196d5 authored almost 3 years ago by Robert Findley <[email protected]>
runtime: don't run TestCheckPtr/TestCheckPtr2 in short mode

Change-Id: I02c9bea1637c2694a76e7747cb8a2e3562301566
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - aa34ea2f4c57ea2648286463ef3f891e49b64fa8 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
go/types: check for non-negative index in tparamIndex

There are code paths (particularly error formatting or tracing) that
call tparamIndex before the...

github.com/hack-pad/go - 0981724eaeb9e3a4553473072c38cf11822bc7fd authored almost 3 years ago by Robert Findley <[email protected]>
go/types, types2: complete methods on pointer receivers in missingMethod

We were not calling objDecl on methods on pointer receivers in
missingMethod. This may not have ...

github.com/hack-pad/go - 9bdbed1d963a840d8c23640bbd20bd4cb9776859 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: match Go 1.17 compiler error messages more closely

Introduce a new constant compilerErrorMessages, which is set to false
for now, so that we can po...

github.com/hack-pad/go - 17b7604ef62316c7ea69e6a07f90282edcf4c874 authored almost 3 years ago by Robert Findley <[email protected]>
runtime: don't serialize all builds in test

Permit a test whose program is already built to run immediately,
rather than waiting for another...

github.com/hack-pad/go - 0555ea3ce997db6e6ef14ba9f55857f359b3fbf2 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
internal/fuzz: limit number of consecutive mutations

This makes two changes: (1) mutator.mutate now only applies a single
mutation to the input, and ...

github.com/hack-pad/go - ab75484d7130496ac9b204b0d418b1ec95bee2f8 authored almost 3 years ago by Roland Shoemaker <[email protected]>
runtime: make sure to properly park before going to sleep in Windows ConsoleControlHandler

This change avoids the program intermittently hanging on windows/arm64 after getting
a signal fo...

github.com/hack-pad/go - 54b9cb80372f45b5e86c5246717c766fac6f1fe6 authored almost 3 years ago by Patrik Nyblom <[email protected]>
go/types: better error for type assertion/switch on type parameter value

This is a port of CL 363439 from types2 to go/types.

Change-Id: Ic71871874345e1d0a4a42703e3673a...

github.com/hack-pad/go - 4083a6f3776487e707d4c56c63b1d7dbabb01fb0 authored almost 3 years ago by Robert Findley <[email protected]>
cmd/compile: emit definition of 'any' only if generic enabled

CL 364377 emitted definition of 'any' when compiling runtime. But 'any'
is only available when g...

github.com/hack-pad/go - 1d004fa2015d128acf6302fc74b95f6a36c35680 authored almost 3 years ago by Cuong Manh Le <[email protected]>
go/types: make sure we are safe for nil in underIs

This CL is a clean port CL 363658 from types2 to go/types.

Change-Id: Ie2032f85a9cfca62161c2e62...

github.com/hack-pad/go - 03dd049d6efcbca6b829d7ed504ceea6318f2036 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: return an error from Instantiate on incorrect len(targs)

This CL is a clean port of CL 363635 from go/types to types2.

Updates #47916

Change-Id: Ib4675...

github.com/hack-pad/go - 3c00a2839a8b577912f78d5fe1ba2d765d0f6c7c authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: add a test for Context deduplication of hash collisions

This CL is a clean port of CL 363517 from go/types to types2,
with the exception that types_test...

github.com/hack-pad/go - 2f937d9bfcbb1e95c089a3af37677bacb185aedb authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: rename types.context to types.environment

This CL is a clean port of CL 363176 from go/types to types2.

It also includes a minor adjustme...

github.com/hack-pad/go - 1c13b58abaaeaaaa54a5471613c020fe78105016 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: don't set a Config.Context if none is provided

This CL is a clean port of CL 363175 from go/types to types2.

Change-Id: I149789be07c0ca7ddef7b...

github.com/hack-pad/go - 9c60a0968987ca3245b115a46d358d63b6b31b0f authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: when type hashing, canonicalize interfaces

This CL is a clean port of CL 363115 from go/types to types2.

Change-Id: Ic2bd9388c57ffa02e75ab...

github.com/hack-pad/go - 633d8c120b8f9c2ce4a0d079cd700a152a27dad6 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: when type hashing, use placeholders for type parameters

This is a port of CL 363114 from go/types to types2 with a temporary
work-around in tparamIndex ...

github.com/hack-pad/go - 489f58779ce073ef8f6b1505f80580211200ff60 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: deduplicate signatures with the context

This CL is a mostly clean port of CL 362801 from go/types to types2.
It deviates from go/types i...

github.com/hack-pad/go - a17a21c190c3e3ea8e88af3e89ccb3c2f101c35b authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: add a test for argument error unwrapping

This CL is a clean port of CL 351338 from go/types to types2.

Change-Id: I7fd0e5a447bf51cb359e7...

github.com/hack-pad/go - fceca2c0f1ff21e1b2b0bf9960b776bb08e58d86 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: tweaks to ArgumentError to be more idiomatic

This CL is a clean port of CL 351335 from go/types to types2.

Updates #47916

Change-Id: Idc377...

github.com/hack-pad/go - f384c707ac3dd946e3c895d0f4e154744048ef36 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: emit definition of 'any' when compiling runtime

Include the predefined type 'any' in the list of other important
predefined types that are emitt...

github.com/hack-pad/go - 3d7cb23e3d5e7880d582f1b0300064bd1138f3ee authored almost 3 years ago by Than McIntosh <[email protected]>
runtime: remove defer test log spam

This appears to be leftover debugging
from CL 356011.

Change-Id: Ieeda0b7e297e0cb943827b2864413...

github.com/hack-pad/go - a2b8231b91e8c4c9e95875b8063bf364f5b0db97 authored almost 3 years ago by Josh Bleecher Snyder <[email protected]>
runtime: check GOAMD64 compatibility after setting up TLS

We need TLS set up to be able to print an error without crashing.

Fixes #49586
Update #45453

C...

github.com/hack-pad/go - 01b6cf09fc9f272d9db3d30b4c93982f4911d120 authored almost 3 years ago by Keith Randall <[email protected]>
sort: improve sort documentation

Fixes #48527

Change-Id: Ib5df0819cbcd5c2e4f03bda841871d237af96b19
Reviewed-on: https://go-revie...

github.com/hack-pad/go - 5e59d6ebd110a7c19770c7d996930ff379ba5726 authored almost 3 years ago by jiahua wang <[email protected]>
os/exec: avoid NewFile on unknown FDs

exec_test.go's init function uses os.NewFile(fd) + f.Stat as a portable
mechanism to determine i...

github.com/hack-pad/go - f6591839727e09cc5cb11d08b333fd2386e8aa1b authored almost 3 years ago by Michael Pratt <[email protected]>
debug/pe,debug/macho: add support for DWARF5 sections

Adds the same logic used in debug/elf to load DWARF5 sections.

Fixes #49590

Change-Id: Iee05b9...

github.com/hack-pad/go - 6c36c332fefdd433cfe6e6468a2542fc310e9f8a authored almost 3 years ago by Alessandro Arzilli <[email protected]>
cmd: pull in golang.org/x/mod@3a5865c

This change updates the cmd module's requirement on x/mod and vendors in
the changes.

This pull...

github.com/hack-pad/go - 40effca7a13d11f3549a24a5d4b02e87c12fc6bb authored almost 3 years ago by Michael Matloob <[email protected]>
runtime: get tracking time only when needed

casgstatus currently calls nanotime on every casgstatus when tracking,
even though the time is o...

github.com/hack-pad/go - 29ec902efc0ae53c4435097efdb738667466756c authored almost 3 years ago by Michael Pratt <[email protected]>
go/types, types2: improve error messages referencing any

Because any is an a alias, it is naively formatted as interface{} in
error messages. This is a s...

github.com/hack-pad/go - 79d0013f53d4199b9f84d813221b71adf7eb1e4d authored almost 3 years ago by Robert Findley <[email protected]>
cmd/compile: prevent irgen crashing for empty local declaration stmt

Updates #47631
Fixes #49611

Change-Id: Ib4a4466038e0d4a9aa9380d7909f29f7d15c6c69
Reviewed-on: h...

github.com/hack-pad/go - 7f4a946fa26f2ffdc14c354f2f1cc193ab5d0e90 authored almost 3 years ago by Cuong Manh Le <[email protected]>
go/types: remove asTypeParam and simplify some code

This is a port of CL 363438 from types2 to go/types.

Change-Id: I87c76d31b398b9ce406f96b0030ee4...

github.com/hack-pad/go - 7c50ef6c8c4c827db45a3327cb950913cf9d489b authored almost 3 years ago by Robert Findley <[email protected]>
go/types: remove structuralString in favor of inlined code

This is a clean port of CL 363154 from types2 to go/types.

Change-Id: I26c18767041db096390e84ba...

github.com/hack-pad/go - f041c7e3028545ba39c60d6e20ab9b74c01bbf33 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: slightly relax notion of structural type

This is a port of CL 363075 from types2 to go/types, adjusted for the
different error reporting ...

github.com/hack-pad/go - 289c930750fccac6aca578c675694b612532fd24 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: refer to structural rather than single underlying type in errors

This is a port of CL 362997 from types2 to go/types. Some error
positions were adjusted in tests...

github.com/hack-pad/go - 46e98d489fda3bc1e36af92ee625b2fce3c1f88e authored almost 3 years ago by Robert Findley <[email protected]>
go/types: move some functions into different files (cleanup)

This is a clean port of CL 362995 from types2 to go/types.

Change-Id: Iefc37b28178795ea944e0bc0...

github.com/hack-pad/go - 50dac3b410b9bc47dabc3f3c2afd21f7aecfb118 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: rename structure to structuralType

This is a clean port of CL 362994 from types2 to go/types.

Change-Id: I51b38c35ec3306274ef03555...

github.com/hack-pad/go - 67c15568156eb0c5607edc51a2b5d69876ba236d authored almost 3 years ago by Robert Findley <[email protected]>
go/types: use type variables consistently in Checker.conversion

This is a clean port of CL 362895 from types2 to go/types.

Change-Id: Icd0631127c51aec80ce9450d...

github.com/hack-pad/go - bddb79f0faa11958ff473109398be684c088a6a9 authored almost 3 years ago by Robert Findley <[email protected]>
all: update vendored golang.org/x/tools

Update the vendored x/tools to pick up the fix for #49597, using the
following commands:

go g...

github.com/hack-pad/go - 9efb6493f498f8fdcc5d34d4df4d5e9c620f861b authored almost 3 years ago by Robert Findley <[email protected]>
cmd/go: don't try to print build info of non-Go binaries

On a non-nil err, buildinfo.ReadFile will always return a nil
*Buildinfo. In scanFile, we need t...

github.com/hack-pad/go - 6e481c0b36ca484a9fe4a1de25b6def06a26b988 authored almost 3 years ago by Alberto Donizetti <[email protected]>
cmd/compile/internal/types2: re-use type hashing logic in Context.typeHash

This CL is clean port of CL 362800 from go/types to types2.

Change-Id: I66443b5a82b3a9c2f608a0f...

github.com/hack-pad/go - 6b3f4d388fe5602172f45361f438edf54699b953 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: refactor the Context type map to accept arbitrary types

This CL is a clean port of CL 362799 from go/types to types2.

Change-Id: Id670aa4b1ca0b568a79bb...

github.com/hack-pad/go - 313cae3861841e9c64bebe2c1aed8126cf6cc117 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: use Identical to verify type identity in the Context map

This is a clean port of CL 362798 from go/types to types2,
with an additional comment adjustment...

github.com/hack-pad/go - a52e4b9c7e8f5aae678596e0c198e67b3b2b1087 authored almost 3 years ago by Robert Griesemer <[email protected]>
doc: mention generics in release notes

Also mention local types restriction.

We probably want to say more at some point, this is just ...

github.com/hack-pad/go - febbef593e8d77500d0e330db91a7be1a71d05e9 authored almost 3 years ago by Keith Randall <[email protected]>
sync: in TryLock try to acquire mutex even if state is not 0

For #45435

Change-Id: I728accd9a53c1826243f52aa04dc2a0a1dfdaadf
Reviewed-on: https://go-review....

github.com/hack-pad/go - fdd67930a0f2fec891e4be9c2b62996eb8b06ce5 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
doc/go1.18: add AppendRune doc

For #47694

Change-Id: I39594c273aeb038702457587ee1c46e4b3920bb6
Reviewed-on: https://go-review....

github.com/hack-pad/go - 865689571d52fee0b4c910d54bd4ba1484ff2344 authored almost 3 years ago by jiahua wang <[email protected]>
debug/dwarf: better error message when reading absent debug_line_str

When a DW_FORM_line_strp is used without a debug_line_str section a
good error message (about th...

github.com/hack-pad/go - 9e13a8876fb531861cbb8e865e57431de9818c16 authored almost 3 years ago by Alessandro Arzilli <[email protected]>
cmd/compile/internal/types2: add test for imported constraints pre-1.18

But exclude the test when running unified build for now
(the unified builder's importers are not...

github.com/hack-pad/go - d15610128e63e299e39af02ea0e6be1afd38b1ff authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: use "implements" rather than "satisfies" in error messages

Type constraint satisfaction is interface implementation.

Adjusted a few error messages.

Chang...

github.com/hack-pad/go - 95e85e31089523447aadb7670715c4d3383cc4ee authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: remove unneccesary tests in implements and lookup

Because the underlying type of a type parameter is an interface,
the questions whether *P for a ...

github.com/hack-pad/go - c8d7c5fe0511569f19d4ebed29f11d96f50b3e07 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: implement Checker.implements

Checker.implements implements the complete interface
"implements" predicate. Use it instead of C...

github.com/hack-pad/go - e08aae2ee443ba8bb16b8ce9c5d3d8d4d3cfa82b authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: better position for invalid slice indices error

Report the error at the first place (which is to say, latest index)
causing the error.

Change-I...

github.com/hack-pad/go - fda92615040c831bdcd812fd20ddb0da9dcef70b authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: better position for "3-index slice of string" error

As a result, slightly narrow position tolerance for tests.

Change-Id: I543dc2b7b9a7940b0684067d...

github.com/hack-pad/go - 42fa03a88ca7767c1869e55b3144a9828d29b7b5 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: move match function to end of file (cleanup)

Change-Id: Ia09f7b1af0e84858fb73ab7e2592c5c3e983dc0e
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 0a54a6826ebd19e5947af57993399652c62801de authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: allow slicing for operands with []byte|string type sets

Fixes #49566.

Change-Id: I80ff4ca661f82b0981d51e0997d5988a9b82f508
Reviewed-on: https://go-revi...

github.com/hack-pad/go - cfcd71790f0ca8c2ec1ae5989cd60ad1e83ee40c authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: optimize common case in structuralType

Most of the time we don't have a type parameter. Avoid using a
closure in that case.

While at i...

github.com/hack-pad/go - 0a39e4a89d26d8375bb5877f736dcc0047894060 authored almost 3 years ago by Robert Griesemer <[email protected]>
go/types, types2: copy implicit bit in interface substitution

Change-Id: Idb02449ef1b06d5f47eeb4a4413e56e2cd5d0d96
Reviewed-on: https://go-review.googlesource...

github.com/hack-pad/go - 184ca3cf99864b4112997891b079d106751be25c authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: error when using internal type declarations in generic functions

We hope to support this feature one day, but it doesn't work currently.
Issue a nice error messa...

github.com/hack-pad/go - 560dc9712d4bc900b5ab32b518ba4de2a9bc588c authored almost 3 years ago by Keith Randall <[email protected]>
cmd/compile/internal/types2: add a check for nil reason in assignableTo

A recent change to error message formatting was missing a nil check.

Fixes #49592

Change-Id: I...

github.com/hack-pad/go - 92655582d0d3b739a1fc88c73cc49a24eb57f845 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: return an error message from Checker.genericType

The bare error message "%s is not a generic type" is probably never
sufficient, so change the si...

github.com/hack-pad/go - b6342a02ad901e015e1c4eb9f862824029efb7b7 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: assign error codes to new errors for Go 1.18

During development, we used placeholder _Todo error codes for new
errors related to generics. Ad...

github.com/hack-pad/go - 0e654100382f345ea555cfc1e1dd50853316b368 authored almost 3 years ago by Robert Findley <[email protected]>
cmd/compile: fix position info for implicit nodes due to generics

The main fix is that we should call ir.SetPos() at the beginning of
(*subster).node.edit functio...

github.com/hack-pad/go - 1dc9af5cdc6dabe4841afb4edf9dbf5124946ea0 authored almost 3 years ago by Dan Scales <[email protected]>
runtime: fix released bytes accumulation in bg scavenger

Currently "released" is not accumulated bytes released. If the last
attempt to scavenge ends up ...

github.com/hack-pad/go - f986191325e9c8be606b5f4db69a33692728274b authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
cmd/compile, runtime: mark R1 as clobbered for write barrier call

If the call to gcWriteBarrier is via PLT, the PLT stub will
clobber R1. Mark R1 clobbered.

For ...

github.com/hack-pad/go - ce4a2755956a42aa3211c121139a52c9a97a9aa0 authored almost 3 years ago by Cherry Mui <[email protected]>
cmd/compile: ensure we replace package placeholder in type names

We want package names exposed by reflect to be things like
main.F[main.foo], not main.F["".foo]....

github.com/hack-pad/go - 5337e53dfa3f5fde73b8f505ec3a91c628e8f648 authored almost 3 years ago by Keith Randall <[email protected]>
doc: document GOAMD64 environment variable

Update #47694

Change-Id: I9c90bd251616cd4d10434bd3b6e6c30c5c819e24
Reviewed-on: https://go-revi...

github.com/hack-pad/go - dfa62c79de4f6f6ee2eb8cde340c21afc739c38d authored almost 3 years ago by Keith Randall <[email protected]>
cmd/compile/internal/types2: simplify under() and fix a crash

The simplified version of under exposed a bug (by crashing):
When a pointer base is used before ...

github.com/hack-pad/go - c2397905e027cdbab3a28d02813adcb82368422c authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/go: remove remaining uses of TODOWorkspaces

Most of them are fixed, but some of them have been rewritten to refer
to specific issues.

For #...

github.com/hack-pad/go - c54605266b746dd4d81e3753b55910e5c8dde5f0 authored almost 3 years ago by Michael Matloob <[email protected]>
go/types: return an error from Instantiate on incorrect len(targs)

Instantiate already returns an error when validation fails. Panicking on
an incorrect number of ...

github.com/hack-pad/go - c78a267bd4ccdd8699a9dbe9bad3597bf3de47e9 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: add a test for Context deduplication of hash collisions

Add a test that exercises the fall-back logic in Context to handle hash
collisions by de-duplica...

github.com/hack-pad/go - e658c42ba460b91d5b6934829ddffa802d4ca524 authored almost 3 years ago by Robert Findley <[email protected]>
test: fix longtest failures on fixedbugs/issue48471.go

This test is failing with -G=0, so specify -G=3.

Change-Id: I4c74707d0a43f8191cb0b156204604458b...

github.com/hack-pad/go - 2fd720b78086eaa57559e38f6ad4fe51c09c3a17 authored almost 3 years ago by Robert Findley <[email protected]>
go/types: rename types.context to types.environment

Now that we have a Context type the context (unexported) type is
particularly confusing. Rename ...

github.com/hack-pad/go - c893a85f21d0e5448c687254e50cc6936b36548e authored almost 3 years ago by Robert Findley <[email protected]>