1. 19 Sep, 2019 8 commits
    • Robert Griesemer's avatar
      go/types: move Identical* predicates into api.go file (cleanup) · 110bbc49
      Robert Griesemer authored
      Follow-up CL removing a TODO.
      
      Change-Id: If900d2f999f6a3e2f2ead29283375547e03cac86
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196337Reviewed-by: default avatarAlan Donovan <adonovan@google.com>
      110bbc49
    • Than McIntosh's avatar
      cmd/link: enhance linker's dwarf test · 1ee9bc9b
      Than McIntosh authored
      Couple of changes to the linker's dwarf test, including:
      
       - add some code to the DWARF tests inlining coverage to verify the
         call_file attribute attached to inlined routine DIEs. If function
         main.F is inlined into function main.G, we want to see that the
         call_file attribute in the inlined routine DIE for main.F is the
         same file as that reported for main.G.
      
       - fix a glitch with the way the DW_AT_decl_file attribute was
         being checked. The previous code relied on hard-coded indices
         into the line table files table, which is very brittle (since
         there is no requirement that files be ordered in any specific
         way). Instead, add machinery to look up the actual file string
         via the line table reader.
      
      Change-Id: I44e71c69b6e676238cf4b805e7170de17b50939f
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196517
      Run-TryBot: Than McIntosh <thanm@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarJeremy Faller <jeremy@golang.org>
      1ee9bc9b
    • ZYunH's avatar
      net/url: add upperhex const instead of using string literal · fe2ed505
      ZYunH authored
      The mime and strconv packages already have a const with this name & value.
      
      Change-Id: Ibd7837f854ac8ec3f57943a9d1db07f4cf6db858
      GitHub-Last-Rev: 775cdce3b75350aa3b9a6f31f04cfdd0033e9ac3
      GitHub-Pull-Request: golang/go#34389
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196437Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      fe2ed505
    • Bryan C. Mills's avatar
      cmd/go/internal/mvs: recompute build list in Reqs before minimizing · e53edafb
      Bryan C. Mills authored
      modload.MinReqs was passing modload.buildList to mvs.Reqs explicitly,
      apparently as an optimization. However, we do not always have the
      invariant that modload.buildList is complete: in particular, 'go mod
      tidy' begins by reducing modload.buildList to only the set of modules
      that provide packages to the build, which may be substantially smaller
      than the final build list.
      
      Other operations, such as 'go mod graph', do not load the entire
      import graph, and therefore call Reqs with the unreduced build list.
      
      Since Reqs retains modules according to a post-order traversal of the
      list, an incomplete list may produce a different traversal order — and
      therefore a different minimal solution, when multiple minimal
      solutions exist. That caused 'go mod tidy' to produce different output
      from other 'go' subcommands when certain patterns of dependencies are
      present.
      
      Since passing in the build list is only an optimization anyway, remove
      the parameter and recompute the actual (complete) list at the
      beginning of mvs.Reqs itself. That way, it is guaranteed to be
      complete and in canonical order.
      
      Fixes #34086
      
      Change-Id: I3101bb81a1853c4a5e773010da3e44d2d90a570c
      Reviewed-on: https://go-review.googlesource.com/c/go/+/193397
      Run-TryBot: Bryan C. Mills <bcmills@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
      e53edafb
    • Tobias Klauser's avatar
      syscall: extend skip criteria for TestAmbientCapsUserns · 5d548f12
      Tobias Klauser authored
      TestAmbientCapsUserns also needs to be skipped, e.g. in case the test is
      run inside a chroot.
      
      Updates #34015
      
      Change-Id: I53913432fe9408217edfe64619adbfd911a51a7a
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196500
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      5d548f12
    • Jason A. Donenfeld's avatar
      syscall: avoid memory corruption in mksyscall_windows.go with *bool parameters · 62fb079e
      Jason A. Donenfeld authored
      Windows type PBOOL is a pointer to a 4 byte value, where 0 means false
      and not-0 means true. That means we should use uint32 here, not bool,
      since Go bools can be 1 byte. Since a *bool is never a "real" valid
      Windows type, converting on both in and out is probably sufficient,
      since *bool shouldn't ever be used as something with significance for
      its particular address.
      
      Updates: #34364
      Change-Id: I4c1b91cd9a39d91e23dae6f894b9a49f7fba2c0a
      Reviewed-on: https://go-review.googlesource.com/c/go/+/196122
      Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      62fb079e
    • Gert Cuykens's avatar
      cmd/doc: add option to output a clean one-line symbol representation · fa42157d
      Gert Cuykens authored
      Currently there is no way for go doc to output a clean
      one-line symbol representation of types, functions, vars
      and consts without documentation lines or other text lines
      added.
      
      For example `go doc fmt` has a huge introduction so if you
      pass that to grep or fzf to search a symbol let say scan
      `go doc fmt | grep scan` you get way to many false
      positives.
      
      Added a `-short` flag to be able to do
      `go doc -short fmt | grep scan` instead which will result in
      just the symbols you are looking for.
      
      func Fscan(r io.Reader, a ...interface{}) (n int, err error)
      func Fscanf(r io.Reader, format string, a ...interface{}) (n int, err error)
      func Fscanln(r io.Reader, a ...interface{}) (n int, err error)
      func Sscan(str string, a ...interface{}) (n int, err error)
      func Sscanf(str string, format string, a ...interface{}) (n int, err error)
      func Sscanln(str string, a ...interface{}) (n int, err error)
      
      
      Fixes #32597
      
      Change-Id: I77a73838adc512c8d1490f5a82075de6b0462a31
      Reviewed-on: https://go-review.googlesource.com/c/go/+/184017
      Run-TryBot: Andrew Bonventre <andybons@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      fa42157d
    • Andrew's avatar
      doc/go1.13: add id tag to note about removal of NaCl port in Go 1.14 · b7e9c7a3
      Andrew authored
      This was in response to a post-merge review comment in
      golang.org/cl/185537
      
      Change-Id: I866b3882c8e83bf1fef60115cff5d1c6a9863f09
      Reviewed-on: https://go-review.googlesource.com/c/go/+/186319Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
      b7e9c7a3
  2. 18 Sep, 2019 24 commits
  3. 17 Sep, 2019 8 commits