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

cmd/link/internal/loadpe: refactor readpesym()

Rewrite the helper "readpesym()" and the code that calls it to pass in
most of the values it nee...

0a5bbba366de5bf833a742e9001538ea10122d6c authored over 2 years ago by Than McIntosh <[email protected]>
net: clean up redundant if branch in dial

Dialer.DialContext no longer performs a redundant check on the length
of the fallback slice, bec...

ebe624dd30f7be1479a2224b60a0da1b152ec851 authored over 2 years ago by Shang Ding <[email protected]>
text/template: remove newline special casing in documentation

Updates #29770
Fixes #51872

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

2b8178c14d8f71a3f022653c2e779e92eea9cdec authored over 2 years ago by Sean Liao <[email protected]>
math/big: call norm when returning success from Rat SetString

After CL 24430, reflect.DeepEqual no longer returns true when comparing
a *Rat built with (*Rat)...

a80070e0cf0b65d619b6669a789d27746a5b2126 authored over 2 years ago by Shulhan <[email protected]>
strings: limits allocation size for SplitN

So that `strings.SplitN("", "T", int(144115188075855872))` does not panic.

Change-Id: Iea00417e...

cc46cac3bc59c35e22e17471d70e28fd3705d4da authored over 2 years ago by Philippe Antoine <[email protected]>
cmd/cgo: use size_t instead of __SIZE_TYPE__

__SIZE_TYPE__ is a GCC type which has been superseded
by size_t -define in stddef.h- since ISO C...

90b29e186576d2682c024b0f0b90c6ad98e824d7 authored over 2 years ago by qmuntal <[email protected]>
cmd/go: add comments to C.* special functions

Adding comments to these functions help IDE tooling to display
meaningful documentation, p.e. on...

3943d97dc7bb1d0c9574ac5f372a10952ebae7b1 authored over 2 years ago by qmuntal <[email protected]>
spec: clarify type term restriction for type parameters

Be clear that the type of a term (not the term itself, which may
be of the form ~P) cannot be a ...

ea858734be6e711fa2d41fdeb6038ff09e3c7841 authored over 2 years ago by Robert Griesemer <[email protected]>
html/template: make FuncMap a type alias of text/template.FuncMap

In preparation to make html/template and text/template use a
single generics package, this chang...

81f1cc52abb0b004d8cd1b130ea293026419acac authored over 2 years ago by Emmanuel T Odeke <[email protected]>
go/types, types2: no "imported but not used" error for unimported packages

If a package could not be imported for whatever reason, the type checker
creates fake package wi...

0a6ddcc4f03b5a89bf2eadee1fe284faf0e20be2 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: better errors for syntax errors in lists

For syntax errors in various (syntactic) lists, instead of reporting
a set of "expected" tokens ...

077573018027c30e5f422d50f0b96e1733ac6001 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd: make go and moddeps tests insensitive to presence of src/go.work

If there is a go.work file in src, "go test cmd/internal/moddeps"
and "go test cmd/go" fail. Se...

3b7fce24cda8b9b245bae94aee9fafea87926c50 authored over 2 years ago by David Chase <[email protected]>
cmd/go: remove arbitrary sleep in TestScript/test_chatty_parallel_success_sleepy

(Also rename it to no longer describe itself in terms of sleeping.)

This test previously relied...

1ac16586421070cdc76c62b5dfd5e74a4b47fca8 authored over 2 years ago by Bryan C. Mills <[email protected]>
cmd/dist: delete special case for release branches without VERSION

findgoversion has some logic from before the go1 release that only
has effect when on a release ...

ca1e509552cab36072016de44234f30072b9e703 authored over 2 years ago by Dmitri Shuralyov <[email protected]>
crypto/x509/internal/macos: return errors when CFRef might be NULL

Updates #51759

Change-Id: Ib73fa5ec62d90c7e595150217b048158789f1afd
Reviewed-on: https://go-rev...

83e9a97f62af41e65e37e096a4ed71f6a59d183e authored over 2 years ago by Filippo Valsorda <[email protected]>
cmd/compile/internal/syntax: remove code dealing with multiple method names

When parsing method declarations in an interface, the parser has
for historic reasons gracefully...

a7e76b8e809ccbd1ceef207a83f8303edb707867 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: remove generic-specific parse modes

Generics have landed; we cannot revert the syntax anymore. Remove
ability to choose between non-...

bf408e741c2827a45c8576dda4126fc4135ef247 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile/internal/syntax: use .go suffix for test files (cleanup)

- Use .go suffix for test files as go fmt doesn't descend into testdata
directories.
- Move test...

717056da1a0086c5d1d1b27231a385f77ebc61d7 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: add commentary on (non-)guarantees when using contexts

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

c05c0ca8cfba2c9b78e92e71907c3a1ee344aa23 authored over 2 years ago by Robert Findley <[email protected]>
go/types: clarify that contexts do not guarantee deduplication

Documentation around the use of types.Context is unclear about whether
contexts guarantee dedupl...

83327b4ae41cf1ef17fb4df4dc395cf17efc6375 authored over 2 years ago by Robert Findley <[email protected]>
[dev.boringcrypto] make.bash: disable GOEXPERIMENT when using bootstrap toolchain

When using Go 1.4 this doesn't matter, but when using Go 1.17,
the bootstrap toolchain will comp...

9d6ab825f6fe125f7ce630e103b887e580403802 authored over 2 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: update build instructions to use podman

The 'docker' command line tool is no longer available on my Linux laptop
due to Docker's new lic...

d1405d7410accbb9ee51e116297e9ce671ab1b56 authored over 2 years ago by Russ Cox <[email protected]>
cmd/compile/internal/walk: fix wrong soleComponent implementation

CL 367755 added soleComponent for handling 1-byte type interface conversion.
This implementation...

2d34af0fd6c6cb214c3a5a8f11ef95854667dd92 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/typecheck: simplify checkassign

After CL 281543, checkassign do not have to check assignment in range
loop anymore, thus its fir...

f5a42cd4b482a595a710129a25ffb5facc655569 authored over 2 years ago by Cuong Manh Le <[email protected]>
compress/zlib: tighten header CINFO check

RFC 1950 section 2.2 "Data format" says "CINFO (Compression info)... For
CM = 8... Values of CIN...

d1060d8e82a320725e961f2648e62034d7f768e4 authored over 2 years ago by Nigel Tao <[email protected]>
runtime: unify C->Go ABI transitions on arm64

There are several of places that save and restore the C callee-saved registers,
the operation is...

eee6f9f825596a769ff163e098d2656cbed09d4f authored over 2 years ago by eric fang <[email protected]>
cmd/link: zero elf addr for debug sections

The Addr should be zero if SHF_ALLOC is not set.

Update #51939

Change-Id: I030f6243d05efabe6b9...

63169c8bdf3e7ac5006c8976b0631b281eb49394 authored over 2 years ago by Meng Zhuo <[email protected]>
runtime: add runtime changes for register ABI on riscv64

This CL adds
- spill functions used by runtime
- ABIInternal to functions

Adding new stubs_risc...

8fefeabb358395fb3e592e9403339552880e0872 authored over 2 years ago by Meng Zhuo <[email protected]>
go/types, types2: better error message for some invalid receiver errors (cleanup)

Use the 1.17 compiler error message together with the receiver base type.
Also, simplify and fla...

7cb1ae3e8e4bc4d80d711b5180705af556c95843 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: add PPC64 ssa ops to support carry chain arithmetic

These are the opcodes required to lower math/bits.Add64 and
math/bits.Sub64 directly into ssa fo...

3d7ca9f7c06e52546f12d8d7c96df3712e09b4c1 authored over 2 years ago by Paul E. Murphy <[email protected]>
runtime: avoid potential hang in TestGdbAutotmpTypes

If a GC related task preempts between hitting the main.main breakpoint
and stepping, the test pr...

dac0220841a44815584c83d26e9f9a45f5560f6d authored over 2 years ago by Paul E. Murphy <[email protected]>
cmd/compile: make XER allocatable register on PPC64

This is the first step towards decomposing aggregate operations
which create or consume the CA b...

a4a0f9b1481e9be4361eb9c4998eca08e2eedb0a authored over 2 years ago by Paul E. Murphy <[email protected]>
go/types, types2: better error message for blank interface method name (cleanup)

Use the 1.17 compiler error message.

Change-Id: Ic62de5bfc9681674069934afc590f5840729f8e2
Revie...

f71daa6fe6eecab08ad47f9dbd584bc11691116a authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: better index-out-of-bounds error message (cleanup)

Use the 1.17 compiler error message, sans "array" prefix.

Change-Id: I0e70781c5ff02dca30a2004ab...

9038c244983e66294781f83e30239623a08672f5 authored over 2 years ago by Robert Griesemer <[email protected]>
all: use new "unix" build tag where appropriate

For #20322
For #51572

Change-Id: Id0b4799d097d01128e98ba4cc0092298357bca45
Reviewed-on: https:/...

a2baae6851a157d662dff7cc508659f66249698a authored over 2 years ago by Ian Lance Taylor <[email protected]>
net/netip: return an error from ParsePrefix with IPv6 zone input

net.ParseCIDR already rejects input in the form of 2001:db8::%a/32, but
netip.ParsePrefix previo...

ae9ce822ff4015fbbe7aa4303e6f3c160f2c53af authored over 2 years ago by Matt Layher <[email protected]>
[dev.boringcrypto] all: merge master into dev.boringcrypto

Change-Id: I04d511ed8e3e7ca4a3267f226a0c3e248c0f84a9

50b8f490e1701773254fdbfe0e3fea00ff1f2a68 authored over 2 years ago by Nicolas Hillegeer <[email protected]>
go/types, types2: preserve parent scope when substituting receivers

Fixes #51920

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

9b90838712856cad86504a526e566f963f86c04e authored over 2 years ago by Robert Findley <[email protected]>
doc/go1.19: mention new unix build constraint

For #51572

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

1724077b789ad92972ab1ac03788389645306cbb authored over 2 years ago by Ian Lance Taylor <[email protected]>
cmd/internal/obj/riscv: add two-operand form to more instructions

Add two-operand form "op rs, rd" to
ADDW/SUBW/SLLW/SRLW/SRAW/SLLIW/SRLIW/SRAIW.

Do the followin...

94727bed02d59b6a40757ba583f61d1b03493e5d authored over 2 years ago by Ben Shi <[email protected]>
cmd/compile/internal/importer: support final unified IR export format

This updates the cmd/compile/internal/importer to natively support the
"final" unified IR export...

9a9bd102904f0ac57a427634cd9f2e6302d60624 authored over 2 years ago by Matthew Dempsky <[email protected]>
go/build: recognize "unix" build tag

The new "unix" build tag matches any Unix or Unix-like system.
This is only recognized on go:bui...

c3fcd0117784ac05e35120ac0de6c960b400a31e authored over 2 years ago by Ian Lance Taylor <[email protected]>
bytes: restore old Trim/TrimLeft behavior for nil

Keep returning nil for the cases where we historically returned nil,
even though this is slightl...

32fdad19a246143ae4f194d1b39886d778de1380 authored over 2 years ago by Ian Lance Taylor <[email protected]>
io/fs, path/filepath: honor SkipDir on second WalkDirFunc error call

Fixes #51617

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

460fd63cccd2f1d16fc4b1b761545b1649e14e28 authored over 2 years ago by Ian Lance Taylor <[email protected]>
net/mail: accept UT as a timezone

Fixes #39906

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

3c7f9b80222376fa01f8c6e3b411281c23dd74ed authored over 2 years ago by Ian Lance Taylor <[email protected]>
internal/pkgbits: add fingerprints to unified IR export format

So far unified IR has been relying on the backwards-compat iexport
data to supply package finger...

42ca44494c6ca94c6a1f433e61bc5d95d51b2222 authored over 2 years ago by Matthew Dempsky <[email protected]>
cmd/internal/obj: sort relocations

At least on some platforms (e.g. PE dynamic loader) relocations
need to be sorted in address ord...

1a9972ec87de1eba7f9f71c8ed4afa88b0c122d4 authored over 2 years ago by Cherry Mui <[email protected]>
cmd/compile: reallocate FPR31 to XER for PPC64 regalloc

We are limited to 64 registers in the allocator today, and PPC64
has not been allocating F0,F26-...

33987b408c391433ad8214a56677e9af6463fd10 authored over 2 years ago by Paul E. Murphy <[email protected]>
cmd/compile: make F0,F27-F31 allocatable on PPC64

These FP registers on PPC64 have no restrictions, they can
be used like the others. F27-F31 were...

e84a37068b05409add29f44d33853c1d30739baa authored over 2 years ago by Paul E. Murphy <[email protected]>
all: delete PPC64 non-register ABI fallback path

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

0a69c98214839a07cb4ac16466fa7961e537881f authored over 2 years ago by Cherry Mui <[email protected]>
cmd/compile/internal/syntax: fix scanner.{op,prec} docs

These fields are also valid for _Star.

Change-Id: I2582000ac1737c41416e69f91404f7cac279d718
Rev...

26a8cf56e0cfdb555025f60acf2e2ec773a5f492 authored over 2 years ago by Matthew Dempsky <[email protected]>
syscall: optimize Byte{Ptr,Slice}FromString

Use bytealg.IndexByteString(str, 0) instead of looping through the
string to check for a zero by...

0d651041a9f48bbd1456317dfc784cdfa253e877 authored over 2 years ago by Kir Kolyshkin <[email protected]>
runtime/race: update runtime (v3)

New tsan runtime (v3) built on llvm commit 1784fe0532a6.

The new runtime features:
- 2x smalle...

d6a1ffd624bd0d6dbf3a15070e378749612b35c9 authored over 2 years ago by Dmitry Vyukov <[email protected]>
io/ioutil: add deprecation markers to ioutil

All the code in ioutil just forwards functionality to code
in either the io or os packages, per ...

a208aa7f339db75f4b79a61be12616b846477a18 authored over 2 years ago by Jeff Widman <[email protected]>
cmd/compile/internal/ir: remove un-used code for const

CL 390474 removed last usages of ConstValue, it can now be removed, and
also Float64Val, since w...

b10164b29278016cfbc5f42c0f8620cd467993d5 authored over 2 years ago by Cuong Manh Le <[email protected]>
os: use syscall.Timespec.Unix

Use the syscall method instead of repeating the type conversions for each OS.

Change-Id: I1db97...

5fcc6554d955c31e7a313ff7e1b3bc13de9d63a1 authored over 2 years ago by Ian Lance Taylor <[email protected]>
Revert "reflect, runtime: add reflect support for regabi on riscv64"

This reverts commit 56400fc70675cc2f404f33e3ed13386967cfe4da.

Reason for revert: this CL requir...

ad646b33c9fd2366c91a44b262910c1064b24f11 authored over 2 years ago by mzh <[email protected]>
encoding/xml: expose decoder line and column

The existing implementation of the xml decoder uses the line number
only for reporting syntax er...

0eea25159fe58ab956198f3009e6ded875d2796e authored over 2 years ago by Patrick Gundlach <[email protected]>
go/build: remove unused code in TestDependencies

Change-Id: I7ccffbf96bd30f33bb42b6a2592962e2d4dda9fc
GitHub-Last-Rev: 2d6e214ac50bf505f8edf5ad8b...

234283d8aba1e892906e889782ae5723686da6c6 authored over 2 years ago by zhangjian <[email protected]>
time: add Duration.Abs

Fixes #51414

Change-Id: Ia3b1674f2a902c8396fe029397536643a3bc1784
GitHub-Last-Rev: 67159648af09...

0bbd05b8262624bb8e8aea43fa76934fbff8fc81 authored over 2 years ago by Carl Johnson <[email protected]>
regexp: use input.step() to advance one rune in Regexp.allMatches()

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

737837c9d45946e6a43f4de5fe3309b9e06ba83f authored over 2 years ago by Andy Pan <[email protected]>
test: fix inline test on noopt builder

CL 394074 broke the noopt builder. Something about time.After's inlining
depends on the build fl...

018b78cc5b4b08447076f143271c249c0dde1297 authored over 2 years ago by Keith Randall <[email protected]>
cmd/compile: upgrade prove pass to know results of math/bits ops are nonnegative

Fixes #51963

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

3bd8c78575a27ee9ac7b3c8d8c35db1feee31737 authored over 2 years ago by Keith Randall <[email protected]>
cmd/compile: optimize BSRQ with nonzero input

Same as BSFQ, if the input is known to be nonzero we don't need a CMOV
to correct for the weird ...

7d3b64a2e372b0e7c550bf9152fe215605e448e4 authored over 2 years ago by Keith Randall <[email protected]>
reflect, runtime: add reflect support for regabi on riscv64

This CL adds regabi support needed for reflect.

Change-Id: Ib78f8c7765f03e3a7b46e8b115bf8870b80...

56400fc70675cc2f404f33e3ed13386967cfe4da authored over 2 years ago by Meng Zhuo <[email protected]>
cmd/go/internal/modfetch: remove unused FileRev struct

In CL 367756 we remove ReadFileRevs function, We simplified
the implementation of the interface ...

79e051ad33992cb50e689b0dff2c6fc6f8b4c94f authored over 2 years ago by Baokun Lee <[email protected]>
os: document DirFS implements fs.StatFS

Fixes #51856

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

b0750de656602bb1d994dd4a524f522567184db2 authored over 2 years ago by hopehook <[email protected]>
Revert "cmd/compile: stop interface conversions for generic method calls from allocating"

This reverts commit e550c3054586a224d949cc8fa030bac0887bee51.

Reason for revert: Method bound c...

3f69cc7d77fbc569824307e6dca37950003ce5a8 authored over 2 years ago by Keith Randall <[email protected]>
cmd/compile: use method expression closures to implement bound method calls

When we have x.M(args) where x is a value of type parameter type, we
currently cast x to the bou...

f326964824a4001ea3964c256e70d61e7f663afa authored over 2 years ago by Keith Randall <[email protected]>
cmd/compile: implement generic method expressions with closures in dictionary

Currently we do quite a dance for method expressions on generic
types. We write a new closure, a...

7fc38802e15be1a221290b0a9da1f587ace19488 authored over 2 years ago by Keith Randall <[email protected]>
internal/abi: define riscv64 register ABI constants

Add the riscv64 register ABI constants and allow regabi
value to be set for riscv64

Change-Id: ...

0652274c10f8f2a520c30bf43bb968dac91bf9f5 authored over 2 years ago by Meng Zhuo <[email protected]>
cmd/compile: enable inlining SELECT

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

80a7504a13a5dccb60757d1fc66d71bcba359799 authored over 2 years ago by Wayne Zuo <[email protected]>
cmd/compile: simplify fingerprint logic

Historically, we sometimes recorded imports based on either package
path ("net/http") or object ...

3dac99ad4cdc7014343bcbddf01aca2d9e7a4e96 authored over 2 years ago by Matthew Dempsky <[email protected]>
net/netip: fix uses of "IPv4-mapped IPv6" in doc comments

The correct (or at least mostly commonly used) name for addresses of the
form ::ffff:192.0.2.128...

3dac914b772f7c99bb749839946ca68878a65f35 authored over 2 years ago by Adam Pritchard <[email protected]>
net/mail: improve detection of charset errors

The detection of the "unknown charset" case was too tailored
to one specific address parser. Mak...

2bbf383774952c8ddc309a45c024af76b47ea1fe authored over 2 years ago by Russ Cox <[email protected]>
cmd/compile/internal/ir: remove NewClosureExpr

The only usage of NewClosureExpr is inside NewClosureFunc, which is its
alternative version. So ...

f25631b490c7ccb8e555b4031dc12046b2534c11 authored over 2 years ago by Cuong Manh Le <[email protected]>
net/http/httptest: fix race in Server.Close

When run with race detector the test fails without the fix.

Fixes #51799

Change-Id: I273adb6d3...

1d19cea740a5a044848aaab3dc119f60c947be1d authored over 2 years ago by Maisem Ali <[email protected]>
cmd/compile: handle sole component for 1-byte type interface conversion

For 1-byte type, we have a special case for converting to interface
type. But we missed an optim...

3fd8b8627f39d34e1a66bf4d610784bcd3f4319d authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: merge ANDconst and UBFX into UBFX on arm64

Add a new rewrite rule to merge ANDconst and UBFX into
UBFX.

Add test cases.

Change-Id: I24d64...

8ab42a945aef7c09189a60263c4450a65bc00a47 authored over 2 years ago by fanzha02 <[email protected]>
net/http/httputil: ignore CloseNotify when a non-background context is present

If the http.Request passed to ReverseProxy.ServeHTTP has a context
with a non-nil Done channel, ...

a10a209b23f877c80d8a5f3ebda1ce4b492ac3a9 authored over 2 years ago by Damien Neil <[email protected]>
go/types, types2: clean up a few typos, and an unused const

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

b88600f926b6a1fb6de6e3a8cc1f0db9132bddb4 authored over 2 years ago by Robert Findley <[email protected]>
test: compile source files as if from "test" module

This CL updates test/run.go to compile xxx.dir/x.go with a package
path of "test/x" instead of j...

b95d332c7e876eb8de8e0df84894c934a3f5cbde authored over 2 years ago by Matthew Dempsky <[email protected]>
runtime: update framepointer_enabled doc

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

b2643c673970676065e4683bbbaa087db694bbc9 authored over 2 years ago by Romanos Skiadas <[email protected]>
cmd/link: do not add label symbols for DWARF on Windows/ARM64

Label symbols are only useful for relocations from text. No need
to do it for DWARF. And the PE ...

cccfb8ffdb97224aed5cc718d4bac3f3df9e55ed authored over 2 years ago by Cherry Mui <[email protected]>
cmd/gofmt: return a proper error for empty Go files

I was testing edge cases in gofumpt, a fork of gofmt,
and noticed that gofmt will return a bare ...

0ed31eb73b13bd57aff727f4ab759c6701d45a01 authored over 2 years ago by Daniel Martí <[email protected]>
cmd/compile: clarify help message for -L flag

The file names reported in error messages by the compiler are
printed unchanged from the file na...

9058080319e5e3b8edbde8c5e2406b11bac163ee authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: refactor walkIndexMap

So all runtime map functions will use the same code path, make it easier
for future CL to handle...

209521c3e34820887c9d221f8f09d8f586c72419 authored over 2 years ago by Cuong Manh Le <[email protected]>
test: remove unused oldescape_linkname.dir directory

CL 187617 removed oldescape_linkname.go, but forgot to remove this
directory too.

Change-Id: I6...

60be4ec096a180d74208230207e839bd2c8a030a authored over 2 years ago by Matthew Dempsky <[email protected]>
test: remove obsolete test case that misuses -p

bug302 compiles p.go with -p=p, and then manually creates a pp.a
archive, and imports it as both...

d14c02a20ca6937d46e4bf67e328627b773786b1 authored over 2 years ago by Matthew Dempsky <[email protected]>
test: use dot-relative imports where appropriate

Currently, run.go's *dir tests allow "x.go" to be imported
interchangeably as either "x" or "./x...

999589e14829e8c69517efa58d903bb9a7588da3 authored over 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile: update riscv64 CALL* ops

This CL allow the CALL ops to take variable number of arguments.

Change-Id: If84bb306c2f23a0a93...

849e42f028d20821aa68d7d37aa2e1fc3abbebe3 authored over 2 years ago by Meng Zhuo <[email protected]>
cmd/compile/internal/types: simplify AllowsGoVersion

After CL 394556, only LocalPkg is passed to AllowsGoVersion, so simplify
the code to not depend ...

947bf333fc2d93e519241b521ddc13c76daa4862 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove types.Field.{Broken,SetBroken}

SetBroken is never called and Broken always returns false.

Updates #51691

Change-Id: I7e3fd3f2...

0eb2c771248c74e462d3ed77dab23bb2de566de1 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile/internal/types: remove anyBroke

anyBroke now always return false, we can get rid of it.

Updates #51691

Change-Id: Idab5bc9f9f2...

2792a414c69d9e6bacee217f6beb92352fe3c2a4 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove AllowsGoVersion checks in old typechecker

types2 handles those checks instead.

The only exception is noder.checkEmbed, since when types2
...

810868c9f646ace10aa37ba5ded4b5d07bd28a19 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove typecheck.FuncBody

CL 388535 removed the only usage of this function.

Change-Id: Ie5a61cce75b03d83162f62989fe52388...

489e4882ef0df15f208e41915cedc1ceb2cc75fd authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove ir.Node.SetDiag

And use base.Fatalf in code that use n.SetDiag(true) instead.

Updates #51691

Change-Id: Ib3c0b...

c10fb508946bccbd015634c0bdb1cbd18e206c8f authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove types.Type.SetBroken

And use base.Fatalf in code that use t.SetBroke(true) instead.

Updates #51691

Change-Id: I9f36...

515135f4c3f9c67d51d6d3d7b8fe82559ac2e9f2 authored over 2 years ago by Cuong Manh Le <[email protected]>
cmd/compile: remove reportTypeLoop

reportTypeLoop used to be used to report invalid recursive types in old
typechecker.

However, t...

7e0a1d340ffd71f239bddbd4686392a5a2c5906b authored over 2 years ago by Cuong Manh Le <[email protected]>
go/types, types2: report struct type for literals with too few/many elements

This change essentially matches the 1.17 compiler error message for
this error.

Fixes #51877.

...

f9747b7f7315fa702a39b420b63977ca90e06e94 authored over 2 years ago by Robert Griesemer <[email protected]>