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: explain changes to compiler error messages

For #47694.
For #50954.

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

github.com/hack-pad/go - a42bbf47d6b0d6f67ad843252cb2e8f56a9d32b7 authored over 2 years ago by Robert Griesemer <[email protected]>
doc/go1.18: document restrictions for real, imag, complex

For #47694.
For #50912.
For #50937.

Change-Id: I3fae6c8dbbd61a45e669b8fb0c18ac76f2183963
Review...

github.com/hack-pad/go - 125c5a3d69c99378b17f50dc3f05e3cf3a8b9d2b authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: tweak missingMethodReason logic to improve message

This makes the error case pointed out in the issue like the current
message in Go 1.17 or -G=0 m...

github.com/hack-pad/go - 902dc38212dfdc21911fc32035704ec50a7b9994 authored over 2 years ago by Dan Scales <[email protected]>
internal/fuzz: properly handle duplicates during cache loading

When loading the corpus, if the cache contained an entry which was a
duplicate of an entry added...

github.com/hack-pad/go - 93fe469de5388b71af2aa2c959dc485fa3d4bee3 authored over 2 years ago by Roland Shoemaker <[email protected]>
cmd/go/internal/workcmd: fix typo in help string

Fixes #50945

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

github.com/hack-pad/go - f1e7dcb49cba50203d656f931c3fb90b29727629 authored over 2 years ago by Bryan C. Mills <[email protected]>
spec: add section on comparable constraint

For #50646.
Fixes #50791.

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

github.com/hack-pad/go - 9152e211328f735e7dadaf69780920d64af09a2a authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: disallow real, imag, complex on type parameters

We can type-check these fine but the API implications are unclear.

Fixes #50912.
For #50937.

C...

github.com/hack-pad/go - 4fea5935f5f03b5037c792f8d5f5aa4cba90f1d6 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: fix unification code for defined types

Fixes #50929.

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

github.com/hack-pad/go - eab9a77a60f5b6aaba978b61fbb260f2fbb307fb authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/go: update go work edit -json types to final version

For #45713

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

github.com/hack-pad/go - d3f5cf9d285d39258b2e6f9002c44aaab3e77c42 authored over 2 years ago by Ian Lance Taylor <[email protected]>
Revert "runtime: normalize sigprof traceback flags"

This reverts commit CL 358900.

Adding _TraceJumpStack to cgo traceback exposed a crashing condi...

github.com/hack-pad/go - 822dbcb7d4b7ab2410bdc19355a0bff99c3c467e authored over 2 years ago by Michael Pratt <[email protected]>
runtime: mgcmark.go typo fix: gorountine -> goroutine.

Change-Id: I5cd980a7c825619cc782a3bca2a1c9c7971fdca2
GitHub-Last-Rev: 6833eedf2dab77f7263f980383...

github.com/hack-pad/go - 38cf79526a5859fb6363e607b2277ab442b28dcb authored over 2 years ago by doujiang24 <[email protected]>
go/types, types2: fix implements and identical predicates

- Use the correct predicate in Checker.implements: for interfaces
we cannot use the API Compar...

github.com/hack-pad/go - 360e1b8197b78685cf08ab5914aa629fb739b2c3 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/go: rewrite TestScript/cgo_stale_precompiled to be agnostic to staleness

The configuration set by x/build/cmd/releasebot causes runtime/cgo to
be stale in the darwin/amd...

github.com/hack-pad/go - 41f485b9a7d8fd647c415be1d11b612063dff21c authored over 2 years ago by Bryan C. Mills <[email protected]>
cmd/go: fix error message when missing import

Fixes #48907

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

github.com/hack-pad/go - a5c0b190809436fd196a348f85eca0416f4de7fe authored over 2 years ago by zhouguangyuan <[email protected]>
doc/go1.18: mention new debug/dwarf DataBitOffset fields

For #46784
For #47694
For #50685

Change-Id: I5351b56722d036a520d1a598ef7af95c5eb44c35
Reviewed-...

github.com/hack-pad/go - 122654739dce506364d10c450afcc36d7572922d authored over 2 years ago by Ian Lance Taylor <[email protected]>
cmd/go: correct -trimpath docs for the standard library

Fixes #50402

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

github.com/hack-pad/go - 5fd8c9b5c5a0348317e49e6c58e34b9a6e00e91a authored over 2 years ago by Mark Pulford <[email protected]>
doc/go1.18: in workspace mode doc, link to "go work" docs

For #45713
For #47694

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

github.com/hack-pad/go - 1fadc392ccaefd76ef7be5b685fb3889dbee27c6 authored over 2 years ago by Ian Lance Taylor <[email protected]>
go/types, types2: delete TypeList.String

This method is unused and was not discussed in the API
proposals. Note that all error output goe...

github.com/hack-pad/go - b37c6e15477a934f894488751bed8abcf16b4f5c authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: remove Qualifier parameter from Checker.implements

Where we provide it we take it from the Checker (which is already
passed in). Thus there's no ne...

github.com/hack-pad/go - 8f7d96f5bcb927a576a43b890f2643e521107665 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use Checker.implements in operand.assignableTo

Now that we have the detailed error reporting in Checker.implements
we don't need it anymore in ...

github.com/hack-pad/go - 25b4b862f29900af00c794424b033b01eb5ab0cb authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: better error reporting for Checker.implements

This CL copies (and adjusts as needed) the logic for error reporting
from operand.assignableTo t...

github.com/hack-pad/go - 2e30c4b4bb7c4426ebc27e8af6d0570dbd97054b authored over 2 years ago by Robert Griesemer <[email protected]>
spec: add section on type inference

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

github.com/hack-pad/go - 654d5f4b5dfc30167bbffd0d7aeba3c1e29277c8 authored over 2 years ago by Robert Griesemer <[email protected]>
debug/dwarf: fix problems with handling of bit offsets for bitfields

This patch reworks the handling of the DWARF DW_AT_bit_offset and
DW_AT_data_bit_offset attribut...

github.com/hack-pad/go - 8314544bd6b3c5f0bee89a6bd411ced0aeba1a8c authored over 2 years ago by Than McIntosh <[email protected]>
go/types, types2: delete _TypeSet.includes - not used (cleanup)

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

github.com/hack-pad/go - 9ff00398489d9eb1822b3de028cd6ccf5674ebb3 authored over 2 years ago by Robert Griesemer <[email protected]>
math/big: prevent overflow in (*Rat).SetString

Credit to rsc@ for the original patch.

Thanks to the OSS-Fuzz project for discovering this
issu...

github.com/hack-pad/go - ad345c265916bbf6c646865e4642eafce6d39e78 authored over 2 years ago by Katie Hockman <[email protected]>
go/types: update interface receivers after substituting

Interface method receivers are synthetic: they record either the
interface type or the the defin...

github.com/hack-pad/go - f5fe5a4524d5e5390238ae7f5abcaa4299b31a37 authored over 2 years ago by Robert Findley <[email protected]>
go/types, cmd/compile: fix composite literal structural typing

For a composite literal expression like []T{{f: 1}}, we allow T to be
a pointer to struct type, ...

github.com/hack-pad/go - 1a2435c95f8c68c7d21d172c8a80c6cc96aa9cf5 authored over 2 years ago by Matthew Dempsky <[email protected]>
cmd/compile: remove incorrect arm,arm64 CMP->CMN transformations

These can go wrong when one of the operands is the minimum integer value.

Fixes #50854.

Change...

github.com/hack-pad/go - b7b44b3173f151a2313da7072afd25de80511605 authored over 2 years ago by David Chase <[email protected]>
internal/fuzz: centralize corpus entry addition

Adds an addCorpusEntry method to coordinator which manages checking for
duplicate entries, writi...

github.com/hack-pad/go - b2dc66c64db933120c34d2223e670e8594543bd9 authored over 2 years ago by Roland Shoemaker <[email protected]>
cmd/compile: add missing shape check in (*Tsubster).tinter

Add a missing shape check in (*Tsubster).tinter when substituting on a
generic type which is an ...

github.com/hack-pad/go - a991d9dc27bda23018e23488806c8f8d027e4f7b authored over 2 years ago by Dan Scales <[email protected]>
cmd/compile: support structural typing in unified IR

This CL updates unified IR to look at the structural type of a
composite literal type, rather th...

github.com/hack-pad/go - f4aa021985e9ae4a9a395f8fbe32ad08d2bfda3b authored over 2 years ago by Matthew Dempsky <[email protected]>
Revert "spec: document the underlying type of comparable"

This reverts CL 380854.

Per the conluding discussions on #50791. A follow-up will
document `com...

github.com/hack-pad/go - db48840cfc5ea9f8067cd5238827965ea01cdde1 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: clean up the set up of error, comparable

Follow-up on CL 380754.

For #50791.

Change-Id: Ia2f8f9785c2f02647525e7ee4168991fd4066dd3
Revie...

github.com/hack-pad/go - ef0b09c526d78de23186522d50ff93ad657014c0 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: print underlying type of comparable as "interface{comparable}"

For #50791.

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

github.com/hack-pad/go - ca6a5c0d518463b40c3e6e56655d45d9fd60e1f7 authored over 2 years ago by Robert Griesemer <[email protected]>
doc/go1.18: note short-circuit and/or in html/template

It was already noted in text/template; copied from there.

Change-Id: Ie749d04004af60f2333073ddf...

github.com/hack-pad/go - c8b0dcea4a3e67289ccf985b10616200817cca86 authored over 2 years ago by Russ Cox <[email protected]>
cmd/compile/internal/types2: remove (*Signature).SetRecvTypeParams

This method isn't available in go/types, and its use by unified IR is
non-essential. This CL ref...

github.com/hack-pad/go - 8cfbb58bc70b9f9126a3310ac564344cc08c604b authored over 2 years ago by Matthew Dempsky <[email protected]>
cmd/api: reduce parallel 'go list' invocations to a constant

'go list' has its own internal parallelism, so invoking in in parallel
can produce up to quadrat...

github.com/hack-pad/go - 946a8669d92f18a0029abaed9cea36194562a957 authored over 2 years ago by Bryan C. Mills <[email protected]>
spec: document the underlying type of comparable

For #50791.

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

github.com/hack-pad/go - 719e9894f9a471cd74b8469d9231cd2798b33999 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/go: fix retrieving Mercurial commit timestamp under Windows

Use "hgdate" since the strftime filter is unsupported by Mercurial under
Windows.

Fixes #49841
...

github.com/hack-pad/go - 55589e7531c7e576a26f5610241a278caf6e4a4e authored over 2 years ago by Mark Pulford <[email protected]>
cmd/go: avoid recording GOROOT_FINAL in precompiled C archives

C archives for packages in GOROOT are shipped along with binary
releases of the Go toolchain. Al...

github.com/hack-pad/go - 0f4bd92c4d9a16efe05e397354dec87737338d2c authored over 2 years ago by Bryan C. Mills <[email protected]>
cmd/go: refactor TestScript/build_issue48319 to check a more general property

The test previously checked that the DWARF DW_AT_comp_dir attribute
matched GOROOT_FINAL. Howeve...

github.com/hack-pad/go - a9eedc0789085f55193bdbf0d777b8eaeccb1890 authored over 2 years ago by Bryan C. Mills <[email protected]>
cmd/go: remove mercurial from bitbucket vcs options

Mercurial was deprecated as of July 1, 2020 as per https://bitbucket.org/blog/sunsetting-mercuri...

github.com/hack-pad/go - 5b1b80beb1a2a9a353738e80777d1e25cfdfa095 authored over 2 years ago by Ethan Anderson <[email protected]>
cmd/go: add mv and support "! cmp" in script tests

For #50183

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

github.com/hack-pad/go - 827babf6aa602c76e45fabfdc2efe8d3f30edabd authored over 2 years ago by Bryan C. Mills <[email protected]>
all: update vendored golang.org/x/tools

Update the vendored x/tools to pick up CL 380014, which updates the
ifaceassert vet analyzer to ...

github.com/hack-pad/go - 6eb58cdffa1ab334493776a25ccccfa89c2ca7ac authored over 2 years ago by Robert Findley <[email protected]>
go/types, types2: all interfaces implement comparable (add tests)

For #50646.

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

github.com/hack-pad/go - 38729cff96ad38b2d5b530c1009ff0403ebff903 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: make each method instantiation independently lazy

Method signatures can introduce a significant number of edges into the
type graph. One can imagi...

github.com/hack-pad/go - b66bc0a9d5eba193f7d7f4977ca64a77527f4b3b authored over 2 years ago by Robert Findley <[email protected]>
test: add a new test absdiff3.go which uses function callback

We have disallowed having a typeparam on the right-hand-side of a type
declaration. So, we disab...

github.com/hack-pad/go - 078ddecc327a20cec4751e66911197409e01f6d9 authored over 2 years ago by Dan Scales <[email protected]>
cmd/compile: new absdiff.go test, fix problem with g.curDecl

Added a new absdiff2.go test case, which works fully without using a
typeparam on the right-hand...

github.com/hack-pad/go - 16d6a5233a183be7264295c66167d35c689f9372 authored over 2 years ago by Dan Scales <[email protected]>
go/types, types2: pass the seen map through _TypeSet.IsComparable

While checking comparability of type parameters, we recurse through
_TypeSet.IsComparable, but d...

github.com/hack-pad/go - 84eefdc933410907495e42aac872036403851ffa authored over 2 years ago by Robert Findley <[email protected]>
go/types, types2: reorder object processing to avoid broken aliases

By processing non-alias type declarations before alias type declaration,
and those before everyt...

github.com/hack-pad/go - 671e1150c680eb5f21833662362954cc1b155d2b authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: report an error when using a broken alias

The type checker doesn't have a general mechanism to "use" the type
of a type alias whose type d...

github.com/hack-pad/go - fe85c244315f82b1a6a21cd6ddc0255eed92a357 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: slightly better tracing output (debugging support)

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

github.com/hack-pad/go - fef14fdd1dc9106f872e75aae4fcd814abc47080 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: consider type parameters for cycle detection

In validType, when we see an instantiated type, proceed as with
non-generic types but provide an...

github.com/hack-pad/go - 2abfa30f9e0041e932411816ba07d68060eec304 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: in SetUnderlying, set Named.fromRHS if not set yet

This is necessary for cycle detection over imported types whose
underlying types are set by impo...

github.com/hack-pad/go - 7520c080b45e9493b289d622aed8d8a0da528089 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: remove special case for external types in validType

Because validType doesn't modify global state anymore, there's
no need to ignore imported types....

github.com/hack-pad/go - 9dfd458e64a2d3fa92fb7b5da393163151f99cf2 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: validType argument must be *Named type

Now that we have a separate top-level entry point for validType
we can use the more narrow type ...

github.com/hack-pad/go - cdd9e939ef28390ecb04c780499f1e3cc2195234 authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: use a map instead of a field for marking in validType

With this change validType doesn't modify global state anymore.
It also eliminates the need for ...

github.com/hack-pad/go - 4284d4555382ec9da4b301afe328faf850158ffb authored over 2 years ago by Robert Griesemer <[email protected]>
go/types, types2: move validType code into its own file

The validType check is independent of the work of declaring objects.
Move it into a separate fil...

github.com/hack-pad/go - 0328b4f4cae6d2340ded9a7d2ce850b98d3bbcbe authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: always print stack trace for -dpanic

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

github.com/hack-pad/go - b850f3629fa9c2dfb6a94a3d0e472a0cc87b949c authored over 2 years ago by Ian Lance Taylor <[email protected]>
go/types: panic if named type instances are mutated

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

github.com/hack-pad/go - 48ec6df16c285cda50bd38970b82402e8c46919b authored over 2 years ago by Robert Findley <[email protected]>
runtime: replace TestFutexsleep with TestTimediv

TestFutexsleep was originally created in CL 7876043 as a
regression test for buggy division logi...

github.com/hack-pad/go - 97e740e8b0ff1b32b164b0cbef06c12c4d591f3f authored over 2 years ago by Michael Pratt <[email protected]>
cmd/compile: distinguish bound calls/field access in getInstInfo

Given we have support for field access to type params with a single
structural type, we need to ...

github.com/hack-pad/go - f88c3b9f4d087895c3eab5ac4dd8459c76d0d0d8 authored over 2 years ago by Dan Scales <[email protected]>
cmd/compile: improve comments, mainly in cmd/compile/internal/types

Add some useful comments, mainly relates to types.Type. (No non-comment
changes.)

Change-Id: I3...

github.com/hack-pad/go - f9df4ea0c9426eecb93375d31e36cccf95b46e1f authored over 2 years ago by Dan Scales <[email protected]>
runtime: call fflush before exiting in C test

Very, very rarely TestVectoredHandlerDontCrashOnLibrary fails because
the C subprocess exits wit...

github.com/hack-pad/go - 19d819d49c73c8e47749b3c4cbbc2e58a259269a authored over 2 years ago by Austin Clements <[email protected]>
Revert "cmd/go: evaluate root symlink in matchPackages"

This reverts CL 380057.

Reason for revert: appears to have broken x/tools tests on macOS.

Chan...

github.com/hack-pad/go - 0ef6dd74409506eb084bd8d2fe61e0e70ed9e5a4 authored over 2 years ago by Bryan Mills <[email protected]>
spec: minor formatting and link cleanups

Mostly from CL 367954.

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

github.com/hack-pad/go - b7fa0f941f05fdf8420f15cd5ebe2f209da172e0 authored over 2 years ago by Ian Lance Taylor <[email protected]>
cmd/go: evaluate root symlink in matchPackages

This fixes checks for crossing module boundaries when the root of
the module is a symlink. We're...

github.com/hack-pad/go - 35b0db7607a33da662a510f85d30f18cd40c1149 authored over 2 years ago by Michael Matloob <[email protected]>
runtime/pprof: TestLabelSystemstack parallelLabelHog.func1 must be labeled

The closure in parallelLabelHog should be labeled in a addition to
parallelLabelHog itself. Gene...

github.com/hack-pad/go - 9eba5ff5219a76c3c4e020fa27e966a226174d7e authored over 2 years ago by Michael Pratt <[email protected]>
Revert "doc/go1.18: document type parameter name restriction"

This reverts CL 376414.

For #47694.
For #50481.

Change-Id: Ie73961046e52e6e5d3262ef0aeaa24bec7...

github.com/hack-pad/go - d15481b8c7f5f73a8b987a0c1deea04659ed0bb0 authored over 2 years ago by Robert Griesemer <[email protected]>
cmd/compile: make sure multiple blank typeparams remain unique

In a method declaration "func (f *Foo[_, _]) String() string { ... }",
the two blank typeparams ...

github.com/hack-pad/go - 32636cd1ffc6cd9ef81d09b8320d2aaad4a21117 authored over 2 years ago by Dan Scales <[email protected]>
runtime: remove -tags=threadprof in tests

Use an enviroment variable rather than a build tag to control starting
a busy loop thread when t...

github.com/hack-pad/go - 2c2e08144f79d8746384c2a483bf03532dc0c443 authored over 2 years ago by Ian Lance Taylor <[email protected]>
cmd/go: ignore replaces of main modules in workspace modules

And disallow replaces of any main modules in the go.work file itself.

Change-Id: Ifa9ba9eaed047...

github.com/hack-pad/go - 65535bfe6dad2cb7535f6a5647b288e4489608f9 authored over 2 years ago by Michael Matloob <[email protected]>
runtime/pprof: allow labels on racecall in TestLabelSystemstack

Fixes #50705.

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

github.com/hack-pad/go - 59122f85bd3a1231dd5b49fa83319d634bc96f23 authored over 2 years ago by Michael Pratt <[email protected]>
go/types, types2: use Identical rather than unification in missingMethod

Now that we instantiate methods on instantiated types, there is no need
to use unification to ma...

github.com/hack-pad/go - 9284279b44418b52221b4d68d400fa9220521726 authored over 2 years ago by Robert Findley <[email protected]>
cmd/compile/internal/importer, gcimporter: use *TypeParam as tparamIndex map value

This is a map from identifiers to type parameters, use *TypeParam
as map value instead of Type.
...

github.com/hack-pad/go - e7d5857a5a82551b8a70b6174ec73422442250ce authored over 2 years ago by Robert Griesemer <[email protected]>
regexp: add the missing is

Change-Id: I23264972329aa3414067cd0e0986b69bb39bbeb5
GitHub-Last-Rev: d1d668a3cbe852d9a06f03369e...

github.com/hack-pad/go - e4ab8b0fe6d34c6cbfe29031a9c4df58ac1c452f authored over 2 years ago by luochuanhang <[email protected]>
runtime: print error if mmap fails

Fixes #49687

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

github.com/hack-pad/go - bb7fb8a5fac1ad9570c554c366826d649350acbe authored over 2 years ago by Ian Lance Taylor <[email protected]>
cmd/compile: add early a CONVIFACE normally created in the order phase

Most CONVIFACEs are created in the transform phase (or old typechecker,
in -G=0 mode). But if th...

github.com/hack-pad/go - c1296af151f5682f6e0cd88cd0372aca5a464a97 authored over 2 years ago by Dan Scales <[email protected]>
go/types, types2: use orig. compiler error message for a shift error

Slightly better for cases such as string(1 << s).
Leaves type-checker tests alone for now becaus...

github.com/hack-pad/go - 1efc5815dd316953a8f37e58f7e3542a6aac3adf authored over 2 years ago by Robert Griesemer <[email protected]>
doc/go1.18: don't mention -buildinfo flag

It was removed in CL 378576.

For #50501

Change-Id: I26b8f0e99a40fa5c616aa4849a6ab15dd0d072f8
R...

github.com/hack-pad/go - a4d3c73ac3cc109ac2088beadf4d51987a60c625 authored over 2 years ago by Ian Lance Taylor <[email protected]>
runtime/pprof: compare all samples vs rusage in TestCPUProfileMultithreadMagnitude

TestCPUProfileMultithreadMagnitude compares pprof results vs OS rusage
to verify that pprof is c...

github.com/hack-pad/go - d1640d86522c08e662eec86de985e9781e879e20 authored over 2 years ago by Michael Pratt <[email protected]>
go/types, types2: explicitly check for non-nil type in LookupFieldOrMethod

Document and enforce API expectation. Add a test so we don't
inadvertently change the function b...

github.com/hack-pad/go - efbecc7eff88a0d54f3ea9fca290e1808e197ae2 authored almost 3 years ago by Robert Griesemer <[email protected]>
runtime/pprof: assert that labels never appear on unexpected samples

This makes TestLabelSystemstack much more strict, enabling it to detect
any misplacement of labe...

github.com/hack-pad/go - 985d97e602cb39c7739c072250e09ba61e440318 authored almost 3 years ago by Michael Pratt <[email protected]>
runtime: do not inherit labels on system goroutines

GC background mark worker goroutines are created when the first GC is
triggered (or next GC afte...

github.com/hack-pad/go - 3e45eb3ce1f28ccb6e4150b6c2c09ca8568874e6 authored almost 3 years ago by Michael Pratt <[email protected]>
runtime: eliminate arbitrary timeout in TestStackGrowth

Instead, allow the test to run up until nearly the test's deadline,
whatever that may be, and th...

github.com/hack-pad/go - bec2cc370871b998a131f5f363dab4a14b5f2eb2 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/compile: don't elide extension for LoadReg to FP register on MIPS64

For an extension operation like MOWWreg, if the operand is already
extended, we optimize the sec...

github.com/hack-pad/go - d93ff73ae207763871bee38590242be968b2e743 authored almost 3 years ago by Cherry Mui <[email protected]>
runtime: deflake TestPreemptionAfterSyscall

This test occasionally takes very slightly longer than the 3 second
timeout on slow builders (es...

github.com/hack-pad/go - ca33b34e17b5f4673a40c894a4f807c01d1ecebe authored almost 3 years ago by Austin Clements <[email protected]>
cmd/go: fix TestScript/version_buildvcs_git_gpg

This test was missed in CL 358539, presumably because the 'longtest'
builders lack a 'gpg' execu...

github.com/hack-pad/go - 2a061fdd47ccb5420229ce5f9f057e194be76995 authored almost 3 years ago by Bryan C. Mills <[email protected]>
spec: add another example for an invalid shift case

Fixes #45114.

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

github.com/hack-pad/go - 4042194f2d9fd605bd8b6553043e8b195767c446 authored almost 3 years ago by Robert Griesemer <[email protected]>
go/types, types2: report error for invalid string(1 << s)

For #45114.
Fixes #45117.

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

github.com/hack-pad/go - 50869f377fd72a921d27e3522a05604b7753b3ab authored almost 3 years ago by Robert Griesemer <[email protected]>
go/types, types2: avoid field/method lookup error on invalid types

Fixes #49541.

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

github.com/hack-pad/go - fa4df6597eb7ed07a9a835a8b68c37282709f79e authored almost 3 years ago by Robert Griesemer <[email protected]>
cmd/compile: add missing copyright notice

Also, simplify one expression (missed comment on previous review).

Change-Id: Ic2d212442c2738e0...

github.com/hack-pad/go - 626f13d0ca08f04f98e7a29a08028c21e38868c0 authored almost 3 years ago by Dan Scales <[email protected]>
cmd/compile, go/types: restore 'too many return values' error for func with no results

Currently the code handles the case of returning values from
a function with no result parameter...

github.com/hack-pad/go - cf5d73e8a2ba8d382278c7f490db61e513768159 authored almost 3 years ago by Russ Cox <[email protected]>
doc/go1.18: add a release note for 'go mod tidy' checksum changes

Updates #47738
Fixes #49598

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

github.com/hack-pad/go - 71888fe4b0d804f44371944f93f12442a6b0a862 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/compile, go/types: fix checking of bad type switch

Consider the following program:

package p

func f() {
x := 1
v := 2
switch v.(type) {
...

github.com/hack-pad/go - 46f138f288cf5c8a34cf5688cb6bea9deafb4f84 authored almost 3 years ago by Russ Cox <[email protected]>
net/http: skip TestClientTimeout_Headers_h{1,2} on windows/arm and windows/arm64

This extends the skip added in CL 375635 to the "_Headers" variant of
the test, since we have ob...

github.com/hack-pad/go - 75bcdd59635a33e2a210ef6b02f5e3814571de4b authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/compile: support field access for typeparam with structural constraint

In the compiler, we need to distinguish field and method access on a
type param. For field acces...

github.com/hack-pad/go - ef4be98abd699c6f059dcac6dc6dfe5774cbf257 authored almost 3 years ago by Dan Scales <[email protected]>
cmd/go: remove the -buildinfo flag

Fixes #50501
(in a sense, by removing a flag that looks like it should do something
it does not)...

github.com/hack-pad/go - d54f6630703900948d9757487a1bffd87b7d36e2 authored almost 3 years ago by Bryan C. Mills <[email protected]>
cmd/dist: avoid lapsing into x86 builds on ARM64 Macs

We use uname -m to decide the GOHOSTARCH default,
and on my ARM64 Mac laptop, uname -m prints x8...

github.com/hack-pad/go - 5b3ebc8b72f496a5c6892d76fdeee3d9029b55cc authored almost 3 years ago by Russ Cox <[email protected]>
cmd/internal/obj/arm64: adjust rule for VMOVQ instruction

The VMOVQ instruction stores a 128-bit number into a V register, for
example:
VMOVQ $0x11223...

github.com/hack-pad/go - 897b3da2e079b9b940b309747305a5379fffa6ec authored almost 3 years ago by eric fang <[email protected]>