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
This CL is a mostly clean port of CL 362801 from go/types to types2.
It deviates from go/types i...
This CL is a clean port of CL 351338 from go/types to types2.
Change-Id: I7fd0e5a447bf51cb359e7...
fceca2c0f1ff21e1b2b0bf9960b776bb08e58d86 authored about 3 years agoThis CL is a clean port of CL 351335 from go/types to types2.
Updates #47916
Change-Id: Idc377...
f384c707ac3dd946e3c895d0f4e154744048ef36 authored about 3 years ago
Include the predefined type 'any' in the list of other important
predefined types that are emitt...
This appears to be leftover debugging
from CL 356011.
Change-Id: Ieeda0b7e297e0cb943827b2864413...
a2b8231b91e8c4c9e95875b8063bf364f5b0db97 authored about 3 years agoWe need TLS set up to be able to print an error without crashing.
Fixes #49586
Update #45453
C...
01b6cf09fc9f272d9db3d30b4c93982f4911d120 authored about 3 years agoFixes #48527
Change-Id: Ib5df0819cbcd5c2e4f03bda841871d237af96b19
Reviewed-on: https://go-revie...
exec_test.go's init function uses os.NewFile(fd) + f.Stat as a portable
mechanism to determine i...
Adds the same logic used in debug/elf to load DWARF5 sections.
Fixes #49590
Change-Id: Iee05b9...
6c36c332fefdd433cfe6e6468a2542fc310e9f8a authored about 3 years ago
This change updates the cmd module's requirement on x/mod and vendors in
the changes.
This pull...
40effca7a13d11f3549a24a5d4b02e87c12fc6bb authored about 3 years ago
casgstatus currently calls nanotime on every casgstatus when tracking,
even though the time is o...
Because any is an a alias, it is naively formatted as interface{} in
error messages. This is a s...
Updates #47631
Fixes #49611
Change-Id: Ib4a4466038e0d4a9aa9380d7909f29f7d15c6c69
Reviewed-on: h...
This is a port of CL 363438 from types2 to go/types.
Change-Id: I87c76d31b398b9ce406f96b0030ee4...
7c50ef6c8c4c827db45a3327cb950913cf9d489b authored about 3 years agoThis is a clean port of CL 363154 from types2 to go/types.
Change-Id: I26c18767041db096390e84ba...
f041c7e3028545ba39c60d6e20ab9b74c01bbf33 authored about 3 years ago
This is a port of CL 363075 from types2 to go/types, adjusted for the
different error reporting ...
This is a port of CL 362997 from types2 to go/types. Some error
positions were adjusted in tests...
This is a clean port of CL 362995 from types2 to go/types.
Change-Id: Iefc37b28178795ea944e0bc0...
50dac3b410b9bc47dabc3f3c2afd21f7aecfb118 authored about 3 years agoThis is a clean port of CL 362994 from types2 to go/types.
Change-Id: I51b38c35ec3306274ef03555...
67c15568156eb0c5607edc51a2b5d69876ba236d authored about 3 years agoThis is a clean port of CL 362895 from types2 to go/types.
Change-Id: Icd0631127c51aec80ce9450d...
bddb79f0faa11958ff473109398be684c088a6a9 authored about 3 years ago
Update the vendored x/tools to pick up the fix for #49597, using the
following commands:
go g...
9efb6493f498f8fdcc5d34d4df4d5e9c620f861b authored about 3 years ago
On a non-nil err, buildinfo.ReadFile will always return a nil
*Buildinfo. In scanFile, we need t...
This CL is clean port of CL 362800 from go/types to types2.
Change-Id: I66443b5a82b3a9c2f608a0f...
6b3f4d388fe5602172f45361f438edf54699b953 authored about 3 years agoThis CL is a clean port of CL 362799 from go/types to types2.
Change-Id: Id670aa4b1ca0b568a79bb...
313cae3861841e9c64bebe2c1aed8126cf6cc117 authored about 3 years ago
This is a clean port of CL 362798 from go/types to types2,
with an additional comment adjustment...
Also mention local types restriction.
We probably want to say more at some point, this is just ...
febbef593e8d77500d0e330db91a7be1a71d05e9 authored about 3 years agoFor #45435
Change-Id: I728accd9a53c1826243f52aa04dc2a0a1dfdaadf
Reviewed-on: https://go-review....
For #47694
Change-Id: I39594c273aeb038702457587ee1c46e4b3920bb6
Reviewed-on: https://go-review....
When a DW_FORM_line_strp is used without a debug_line_str section a
good error message (about th...
But exclude the test when running unified build for now
(the unified builder's importers are not...
Type constraint satisfaction is interface implementation.
Adjusted a few error messages.
Chang...
95e85e31089523447aadb7670715c4d3383cc4ee authored about 3 years ago
Because the underlying type of a type parameter is an interface,
the questions whether *P for a ...
Checker.implements implements the complete interface
"implements" predicate. Use it instead of C...
Report the error at the first place (which is to say, latest index)
causing the error.
Change-I...
fda92615040c831bdcd812fd20ddb0da9dcef70b authored about 3 years agoAs a result, slightly narrow position tolerance for tests.
Change-Id: I543dc2b7b9a7940b0684067d...
42fa03a88ca7767c1869e55b3144a9828d29b7b5 authored about 3 years ago
Change-Id: Ia09f7b1af0e84858fb73ab7e2592c5c3e983dc0e
Reviewed-on: https://go-review.googlesource...
Fixes #49566.
Change-Id: I80ff4ca661f82b0981d51e0997d5988a9b82f508
Reviewed-on: https://go-revi...
Most of the time we don't have a type parameter. Avoid using a
closure in that case.
While at i...
0a39e4a89d26d8375bb5877f736dcc0047894060 authored about 3 years ago
Change-Id: Idb02449ef1b06d5f47eeb4a4413e56e2cd5d0d96
Reviewed-on: https://go-review.googlesource...
We hope to support this feature one day, but it doesn't work currently.
Issue a nice error messa...
A recent change to error message formatting was missing a nil check.
Fixes #49592
Change-Id: I...
92655582d0d3b739a1fc88c73cc49a24eb57f845 authored about 3 years ago
The bare error message "%s is not a generic type" is probably never
sufficient, so change the si...
During development, we used placeholder _Todo error codes for new
errors related to generics. Ad...
The main fix is that we should call ir.SetPos() at the beginning of
(*subster).node.edit functio...
Currently "released" is not accumulated bytes released. If the last
attempt to scavenge ends up ...
If the call to gcWriteBarrier is via PLT, the PLT stub will
clobber R1. Mark R1 clobbered.
For ...
ce4a2755956a42aa3211c121139a52c9a97a9aa0 authored about 3 years ago
We want package names exposed by reflect to be things like
main.F[main.foo], not main.F["".foo]....
Update #47694
Change-Id: I9c90bd251616cd4d10434bd3b6e6c30c5c819e24
Reviewed-on: https://go-revi...
The simplified version of under exposed a bug (by crashing):
When a pointer base is used before ...
Most of them are fixed, but some of them have been rewritten to refer
to specific issues.
For #...
c54605266b746dd4d81e3753b55910e5c8dde5f0 authored about 3 years ago
Instantiate already returns an error when validation fails. Panicking on
an incorrect number of ...
Add a test that exercises the fall-back logic in Context to handle hash
collisions by de-duplica...
This test is failing with -G=0, so specify -G=3.
Change-Id: I4c74707d0a43f8191cb0b156204604458b...
2fd720b78086eaa57559e38f6ad4fe51c09c3a17 authored about 3 years ago
Now that we have a Context type the context (unexported) type is
particularly confusing. Rename ...
Users can re-use a type checking context by passing it via types.Config.
There is no need for us...
The interface type string preserves certain non-semantic attributes of
the type, such as embedde...
Type parameter names don't matter for the purposes of generic type
identity, so mask them with n...
Extend the type checking context to allow de-duplicating *Signature
instances, in addition to *N...
Added/clarified some comments.
Change-Id: Ib08d3343ff08c23cc8880a27a0148d1ff077a80f
Reviewed-on...
In the few remaining places where we use asNamed, if the argument
is indeed a *Named, we either ...
Reviewed the code and simplified slightly. No semantic changes.
Change-Id: Ib785b912fbee9774632...
56e55a388986ed9c770a21e9c58df38e021b577b authored about 3 years ago
This CL enables the mode in which the underlying type of
type parameters is the underlying type ...
Until now, the type checker operated with the definition that the
underlying type of a type para...
Server handlers may set a "Transfer-Encoding: identity" header on
responses to disable chunking,...
For #45713, #48257
Change-Id: I7e9248f22fe7ab33b151e07cc296d64c194154e2
Reviewed-on: https://go...
Reviewed all uses of underIs (global function and method) and made
sure we are ok with a nil inc...
When being used by the compiler, augment the types2 missing method
message with extra info, if a...
When being used by the compiler, fix up types2 error messages to be more
like Go 1.17 compiler e...
By default, use workspace modules' go.sum files to check sums. Any
missing sums will still be wr...
Change-Id: I98751d0b2d8aefcf537b6d5200d0b52ffacf1105
Reviewed-on: https://go-review.googlesource...
Because we do not permit a stand-alone type parameter on the RHS of
a type declaration, the unde...
Like the VDSO, we cannot directly traceback from the Linux kernel ARM
atomic/barrier helpers. Ho...
When sending a Request with a non-context deadline, we create a
context with a timeout. This con...
The Linux kernel starting in 5.9 and fixed in 5.16 has a bug that can
break CPU timer signal del...
the CgoPprof tests currently assume that calls to their cgoTraceback
functions are primarily for...
Like OFUNCINST, in case of OXDOT call expression, the arguments need
to be transformed earlier, ...
This change sets a timeout of 10 seconds on each
execution of the fuzz target, both during fuzzi...
Context.TypeHash is not being used outside of the type checker, so
unexport it.
The TypeHash me...
8b66b3d49f931715c52b4ed71bc1dc935132c30f authored about 3 years ago
The special handling for *Named types is not necessary. The hash of an
instance is simply the ha...
In preparation for storing *Signature types in Context, refactor the
type map to not depend on t...
We don't have guarantees that our type hash is perfect, and in fact
fuzzing found cases where id...
Currently the recover4 test, which recovers from a panic created from a
fault, generates a fault...
When register ABI is used, reflect.Value.Call prepares the call
arguments in a memory representa...
When the link exits on error it currently calls Out.Close, which
will munmap the output buffer a...
Fixes #49023
Change-Id: I3de70f8a25f4ba8a0fb8bb96581371e33fde2f7a
GitHub-Last-Rev: b7ec9405adc7...
Change-Id: I2f3619aa827e18f356871511c20cf2c712f496b3
Reviewed-on: https://go-review.googlesource...
This change doesn't modify any functionality.
It also doesn't update all of the comments and
var...
Also, don't set the scope anymore when instantiating (substituting)
a signature.
Per discussion...
ccd41cc05e3ee2f0d0ded1d7faf9c1f43ce1037b authored about 3 years ago
Our compiler gets confused between functions that were declared
with no body, and those which ha...
Fixes #49514
Change-Id: Id687eead731ba49974f11d2e5b489f11eff7d07b
Reviewed-on: https://go-revie...
Change filepath reference from cmd/internal/ld/symtab.go to
cmd/link/internal/ld/symtab.go.
Cha...
eb68e3367bf8d55bb98eb002cef35455f5be3c5f authored about 3 years ago
Currently TestPhysicalMemoryUtilization can fail on systems with large
physical page sizes like ...
FreeOSMemory relies on the function FreeOSMemory increasing HeapReleased
as opposed to the backg...
In function connectionCleanerRunLocked append to closing slice affects db.freeConns and vise ver...
48f1cde942959e2fc3c56973a2986c24d554c82c authored about 3 years agoThanks for jtagcat@ for finding this.
Change-Id: If7324808edbae19ec8bf503b04e0426f3fb3b47a
Revi...
The repository name and structure in the RISC-V GitHub org has been
modified, rendering the exis...
Change-Id: I0b94bdced47483c6412e9979ce2d103fbfc52afb
Reviewed-on: https://go-review.googlesource...
Use C89 declaration. Also fix indentation.
Change-Id: Ib974eb32ac95610d0b0eca00ca3b139b388c73bd...
84277bfd07dad771b9978149bdaed8aa16ed8982 authored about 3 years ago
When building a call expression for function instantiation closure, if
it's a variadic function,...
This PR adds a note into the Go 1.18 changelog for CL 330852.
Updates #46923.
Change-Id: I9915...
666fc173c02ff3004ac9ef867aa4eec7e243dde3 authored about 3 years ago