Ecosyste.ms: OpenCollective

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

github.com/hack-pad/go

The Go programming language
https://github.com/hack-pad/go

doc/go1.18: add Clone doc

For #47694

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

5527d7ff7935d8a58a693be5d1ec4a5312f0f07d authored almost 3 years ago by jiahua wang <[email protected]>
cmd/compile/internal/types2: produce empty type set for invalid ~T

If ~T is not permitted because the underlying type of T is not the
same as T, there is no type t...

67dd9ee92c454ded14f117e2d958db9ee56e8b02 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/types2: report types for mismatched call and return statements

Thanks to [email protected] who wrote the initial version of
this change (CL 354490).

This ...

c25bf0d959c299e5fa5392ae6f835570ed6d111f authored almost 3 years ago by Robert Griesemer <[email protected]>
go/types: print "nil" rather than "untyped nil"

This is a port of CL 366276 from types2 to go/types
with minor adjustments due to the slightly d...

9e7600d3fccf1920028bc808c755198db73482c0 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: type assertions and switches don't operate on type parameters

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

696515ee396566ba02da145cf71fe5913d65b9a6 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: adjust type identity rules for type parameters

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

6ea17aa52c5f66c1fd72b74c36f8036e17ddde34 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: add section on instantiation

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

a3b8f627c258f34325d2284ce636f8d4fb103331 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: adjust conversion rules for type parameters

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

ce2a20af467c8dfa10874abc4b45af413e2b1954 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: adjust assignability rules for type parameters

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

939480033aa2c09f1b511a1928c0b465f41a45da authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: adjust representability rules for type parameters

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

003e7faf53a3e7d0e280871447c60922bff89bcf authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: add definition of "specific types" of an interface

The notion of specific types will be used to define rules for
assignability, convertability, etc...

5d8c49a5a13d922c24dc30675d64f0c49b676535 authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/go: fix bug in using the workfile flag with tests

Tests do custom flag processing so we must process the workfile flag
after that happens.

Also f...

4da06e7b00ae9965ec7d2f6f131266e44f966754 authored almost 3 years ago by Michael Matloob <[email protected]>
doc/go1.18: document that iOS 12 or newer is required

For #47694.
Updates #49616.
Updates #48076.

Change-Id: I570564c3a54d3cd9cfc9b8267df9fbee3363b65...

e883005d2ae5c9de0f3a072af53968da299bb8a8 authored almost 3 years ago by Dmitri Shuralyov <[email protected]>
cmd/internal/objfile, debug/gosym: use the address of runtime.text as textStart

Tools like objdump uses the pcln table to find the line number of
a given PC. For a PIE binary, ...

b38ab0ac5f78ac03a38052018ff629c03e36b864 authored almost 3 years ago by Cherry Mui <[email protected]>
cmd/internal/obj/x86: modify the threshold of assert loop for span6

Fixes: #49716

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

14f2b2a4c55b707828be2890b8c750cb849203f6 authored almost 3 years ago by zhouguangyuan <[email protected]>
cmd/compile/internal/inline: revise closure inl position fix

This patch revises the fix for issue 46234, fixing a bug that was
accidentally introduced by CL ...

465b4028082339bb7aa64ed6e30aef4c0b0413b4 authored almost 3 years ago by Than McIntosh <[email protected]>
runtime: skip TestTimePprof if nanotime calls libc

Fixes #43118

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

47db3bb443774c0b0df2cab188aa3d76b361dca2 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
runtime: run the right test in TestCgoExternalThreadSignal

The code was accidentally repeating the TestCgoExternalThreadSIGPROF test.

While we're here rem...

1ac45e026b2cbae91e3495e2cc6e93b6d505b4f4 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
os/signal: reset SIGURG in TestSignal

Accepting SIGURG signals could cause SIGURG to take up the entire
channel buffer.

Enhance the s...

e3eaedb5cf623d0836533573db4140749da42768 authored almost 3 years ago by Chaoqun Han <[email protected]>
cmd/compile: special packages must not have any path separators

We want to distinguish special compiler-generated package paths,
like go.shape, from user paths,...

0f64c21d90c7017df4f199a5852d60d4b474c03c authored almost 3 years ago by Keith Randall <[email protected]>
runtime: skip TestCgoCallbackGC on darwin-amd64-10_14 builder

This test occasionally fails due to a real bug on this platform.
Due to the age of the platform ...

00045b76e50d98db354aa185bcbd60a6f62499ac authored almost 3 years ago by Bryan C. Mills <[email protected]>
misc/reboot: skip TestRepeatBootstrap on short builders

This test is slow and resource-intensive, and will rarely catch
failures. It is important to run...

b90c6b99b3fbe60f4782c3e3b85f0ba9bbcf5f50 authored almost 3 years ago by Bryan C. Mills <[email protected]>
runtime: ensure no GC is running in TestParallelRWMutexReaders

Currently this test makes it clear that it's unsafe for a GC to run,
otherwise a deadlock could ...

066620f0d8597116a62d9423669ca569646de5ff authored almost 3 years ago by Michael Anthony Knyszek <[email protected]>
cmd/compile/internal/types2: print "nil" rather than "untyped nil"

When we have a typed nil, we already say so; thus it is sufficient
to use "nil" in all the other...

83bfed916b97d51646b4bdc95e0e0fd7798b754f authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/go: work out VCS information once per repository

We need VCS status information for each main package we load.
If two main packages are under the...

9678f794149d07857cbf2a518bfc7aec532fb732 authored almost 3 years ago by Daniel Martí <[email protected]>
spec: fix Swap example (correctly swap type arguments and parameters)

Thanks to @danscales for noticing the mistake.

Change-Id: I547ee80a78419765b82d39d7b34dc8d3bf96...

0244343088e074c5f92b42a9812521f711a69410 authored almost 3 years ago by Robert Griesemer <[email protected]>
doc/go1.18: document new overflow error for some untyped arguments to print/ln

Fixes #49216.
For #47694.

Change-Id: Ib129d790c382ddcc9677d87db4ca827b7159856a
Reviewed-on: htt...

7456b948532e752c0ea0ac98e56e6898271f4dcd authored almost 3 years ago by Robert Griesemer <[email protected]>
doc/go1.18: document compiler change for "declared but not used" errors

Fixes #49214.
For #47694.

Change-Id: Iba68ed17bfd81890309b6a6732087f87a03e1350
Reviewed-on: htt...

7fbe2f4cc877a02465f36e10e7547e03bcb6e1af authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/go: allow a package that ends with _test having an internal test package

Fixes #45477

Change-Id: I2f1ed281515ec40d31fd07ce9f4901777691bfa7
GitHub-Last-Rev: 7894d9400c95...

11972353a67456d776cf891a9e46873e8a1fe630 authored almost 3 years ago by Ryan Leung <[email protected]>
cmd/go: correct an inaccuracy in the 'go help work' docs

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

100d7ea50dbe601164f428f5e4203be7727093f9 authored almost 3 years ago by Michael Matloob <[email protected]>
runtime: execute TestSpuriousWakeupsNeverHangSemasleep in parallel

This test spends most of its time sleeping and waiting on a subprocess
to sleep. It seems like a...

f13fcd9e6839978b883016a50a4e61d4ba843335 authored almost 3 years ago by Bryan C. Mills <[email protected]>
runtime: in TestSpuriousWakeupsNeverHangSemasleep, wait for the runtime to register handlers

According to https://man7.org/linux/man-pages/man7/signal.7.html, the
default behavior of SIGIO ...

17aa21279965f5d088606639c17aa60208a34b7d authored almost 3 years ago by Bryan C. Mills <[email protected]>
go/types, types2: substitute for type parameters in signatures when

comparing type identity

Generic signatures should be considered identical modulo type parameter
...

773f43b35638092f9c0dc56f4a468dce2eb3a8ef authored almost 3 years ago by Robert Findley <[email protected]>
cmd/go: forward the MallocNanoZone variable to script tests

For #49138
Fixes #49723

Change-Id: Ia93130fdc042a1e2107be95cccd7e7eeaa909a87
Reviewed-on: https...

189b4a2f428be7264db76e5275c96d98b847383b authored almost 3 years ago by Bryan C. Mills <[email protected]>
testing: mention that TB also covers the new type F

Fixes #48146

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

8f559bcb4666b2358c227aa1bd3a82f3b806d45a authored almost 3 years ago by Bharath Kumar Uppala <[email protected]>
misc/cgo/testcshared: skip TestGo2C2Go on Windows

For #27019
Fixes #49457

Change-Id: I398abb7b555196ced34a6dd04b68195bf8bbdd38
Reviewed-on: https...

81031300a7139cfb59f704bcbb97e333590aacd0 authored almost 3 years ago by Ian Lance Taylor <[email protected]>
net: allow more generous slop in Fluctuation tests

It appears that at least the OpenBSD kernel gets sloppier the longer
the timeout we give it, up ...

5a3d871831c9febebe513863a26ecc6da1c9c4f3 authored almost 3 years ago by Bryan C. Mills <[email protected]>
net: diagnose unexpected nils in TestUnixAndUnixpacketServer

For #34611

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

2d7ae3fbd86d4b5471ac4044ece208b29cd0ef74 authored almost 3 years ago by Bryan C. Mills <[email protected]>
misc/cgo/test: remove unnecessary forward declaration

This test otherwise fails to build on windows/arm64 as of CL 364774
due to a warning (promoted t...

9e94cc3666cc5ff6ecf5930fb5da48ba62ad8080 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/go: report a helpful error when there are no modules in workspace

The current error message that no go.mod files were found is not
helpful, especially when a go.m...

cd0bf3896677583074d33af0b9e538f237db5394 authored almost 3 years ago by Michael Matloob <[email protected]>
Revert "cmd/go: temporarily skip TestScript/test_fuzz_minimize"

This reverts CL 365315.

Reason for revert: test may have been fixed by intervening changes.

Ch...

6275b54a2a58a1a1bed7f2cc3bc92eca5affb8ff authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/go: fix go work sync when there are zero workspace modules

go work sync panics when there are no workspace modules. This is
because the code that set the p...

e73c6c8808da281186a4d8f7107e34e9f7a4a9ee authored almost 3 years ago by Michael Matloob <[email protected]>
A+C: add Zhou Guangyuan (individual CLA)

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

b2aa1380d9ad9a46eb98cd2e1ad71fcbccdc2bd1 authored almost 3 years ago by zhouguangyuan <[email protected]>
go/types,types2: use allInteger to check type for shifted operand

Fixes: #49705

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

ffb6c798281f1a3ec54421a11573cec7d517d117 authored almost 3 years ago by zhouguangyuan <[email protected]>
spec: add section on the structure of interfaces

This change introduces the notion of a structural interface
and its corresponding structural typ...

e30ebaab0bd5d95178f77cf40998ab14a0341d17 authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: add type parameter types

- add section on type parameters
- added two sections on the scope of type parameters
- expanded...

a287c4aa38c9c71f823a0c366871f7f4452a602c authored almost 3 years ago by Robert Griesemer <[email protected]>
spec: add type parameter lists

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

0c3b4a358ad6813d6aad111d0d0c45dce84cbeec authored almost 3 years ago by Robert Griesemer <[email protected]>
test: fix -G=0 mode for longtest builder

For -G=3 for test using 'any'.

Change-Id: Ia37ee944a38be4f4330e62ad187f10f2d42e41bd
Reviewed-on...

91abe4be0e8f3329bd891838fc047d83a5762c61 authored almost 3 years ago by Dan Scales <[email protected]>
cmd/compile: ensure generic function is loaded when it needs to be re-exported

In the case where we need to re-export a generic function/method from
another package in the exp...

be18cd51dec6ac460949e96231dd05becc2cbcf7 authored almost 3 years ago by Dan Scales <[email protected]>
runtime/cgo: add example of Handle with void* parameter

Fixes #49633

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

d2f4c935f2e247dd9949094c8a4f3ab8df2ba3a0 authored almost 3 years ago by Alan Donovan <[email protected]>
cmd/link: exit early when -d is used on libc platforms

On platforms where we use libc for syscalls, we dynamically link
with libc and therefore dynamic...

57aba325c8c34f3354abc24fca7bc9627949a1c8 authored almost 3 years ago by Cherry Mui <[email protected]>
cmd/compile: handle `any` as alias like `byte` and `rune`

`types.Types[types.TINTER]` is already used for `interface{}`, so we
can conveniently just exten...

b31dda8a2ad833ea5ec3c807119372b27cc0e782 authored almost 3 years ago by Matthew Dempsky <[email protected]>
net: simplify deadline fluctuation tests

These tests were checking for fairly narrow timing windows, but were
running in parallel and hea...

5e774b0f5c9e9d5a0dab94620d2e0030226148c2 authored almost 3 years ago by Bryan C. Mills <[email protected]>
crypto/x509/internal/macos: use APIs available on ios

Use SecCertificateCopyData instead of SecItemExport, which is only
available on macOS.

Updates ...

6027b2183d9a63a11f92d392fd2296e7b88402fc authored almost 3 years ago by Roland Shoemaker <[email protected]>
doc/go1.18: mention register ABI on ARM64 and PPC64

For #47694.

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

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...

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...

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...

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...

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. ...

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...

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...

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...

24898d6948e1651aab909a5abccbfde64dc359cd authored almost 3 years ago by Robert Griesemer <[email protected]>
net: optimize ctxDone usage

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

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...

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...

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...

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...

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 ...

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...

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...

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...

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...

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...

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 ...

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...

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...

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...

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....

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...

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...

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....

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...

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...

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...

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...

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 ...

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...

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...

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 ...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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 ...

489f58779ce073ef8f6b1505f80580211200ff60 authored almost 3 years ago by Robert Griesemer <[email protected]>