Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports for Julia 1.5-RC1 (or beta2) #36098

Merged
merged 29 commits into from
Jun 22, 2020
Merged

Commits on Jun 1, 2020

  1. fix #36031: Printf bug for BigInt (#36033)

    * fix #36031
    
    * Apply suggestions from code review
    
    Co-authored-by: Simon Byrne <[email protected]>
    (cherry picked from commit 150311f)
    simeonschaub authored and KristofferC committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    a7c4fd3 View commit details
    Browse the repository at this point in the history
  2. Update armv7l -d16 -> +d32 feature change for LLVM 9+

    (cherry picked from commit 7e60e1b)
    staticfloat authored and KristofferC committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    91216bf View commit details
    Browse the repository at this point in the history
  3. LibGit2: add resolve_url to RemoteCallbacksStruct for LibGit2 0.99.0 (#…

    …35232)
    
    * LibGit2: amend GitError enum
    
    Since upstream commit
    libgit2/libgit2@e9cef7c
    ("http: introduce GIT_ERROR_HTTP") an invalid content type yields a
    GIT_ERROR_HTTP instead of a GIT_ERROR_NET error. Update the enum to
    include this new error so that the unit test for LibGit2 doesn't fail
    with "invalid value for Enum Class: 34".
    
    * LibGit2: add resolve_url to RemoteCallbacksStruct for LibGit2 0.99.0
    
    Upstream commit
    libgit2/libgit2@59647e1
    ("remote: add callback to resolve URLs before connecting") introduced a
    new callback "resolve_url" in LibGit2 0.99.0. Even though it is not
    currently used in Julia, it needs to be accounted for to get the correct
    size for FetchOptionsStruct. An incorrectly aligned FetchOptionsStruct
    leads to error messages like "invalid version 0 on git_proxy_options"
    when trying to use the latest LibGit2 version.
    
    * LibGit2: update error message checking for LibGit2 0.99.0
    
    Upstream commit
    libgit2/libgit2@b9c5b15
    ("http: use the new httpclient") changed the error message to include
    additional quotes. Relax the unit test to allow these if present.
    
    Co-authored-by: Milan Bouchet-Valat <[email protected]>
    (cherry picked from commit 59a315c)
    diabonas authored and KristofferC committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    53f0393 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2020

  1. Configuration menu
    Copy the full SHA
    5e85387 View commit details
    Browse the repository at this point in the history
  2. Fix a bug with break/continue/return in at-testset begin end (#36046)

    (cherry picked from commit 932a1ec)
    tkf authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    d01886d View commit details
    Browse the repository at this point in the history
  3. clarify show doc strings (#36076)

    fixes #36072
    
    (cherry picked from commit 147d5b1)
    JeffBezanson authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    c7476af View commit details
    Browse the repository at this point in the history
  4. Revert "Use norm instead of abs in generic lu factorization (#34575)" (

    …#36096)
    
    This reverts commit ecc0c43.
    
    (cherry picked from commit be2c643)
    andreasnoack authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    99adb51 View commit details
    Browse the repository at this point in the history
  5. rename pop!(vector, idx, [default]) to popat! (#36070)

    * rename pop!(vector, idx, [default]) to popat!
    
    * popat! : explain what `default` is
    
    (cherry picked from commit 0164101)
    rfourquet authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    3ccc916 View commit details
    Browse the repository at this point in the history
  6. fix #36116, diff(::AbstractRange) returns an Array (#36117)

    * fix #36116, diff(::AbstractRange) returns an Array
    
    (cherry picked from commit b49a0d5)
    mbauman authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    88b689b View commit details
    Browse the repository at this point in the history
  7. fix #36108, printing invalid numeric juxtapositions (#36122)

    (cherry picked from commit 890f34c)
    JeffBezanson authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    539eab5 View commit details
    Browse the repository at this point in the history
  8. Fix mkpath error handling (#36126)

    The error thrown by `mkdir` when the directory already exists was changed in #33422.
    
    (cherry picked from commit 912a8ed)
    simonbyrne authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    633046e View commit details
    Browse the repository at this point in the history
  9. fix #36104, assign global name during type definitions (#36121)

    also fixes #21816
    
    (cherry picked from commit 095e92d)
    JeffBezanson authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    360f5cc View commit details
    Browse the repository at this point in the history
  10. Fix zero(::Type{<:TwicePrecision}) for dimensionful quantities (#36113)

    (cherry picked from commit 38238c8)
    sostock authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    fdd4547 View commit details
    Browse the repository at this point in the history
  11. Fix equality for one-element ranges

    (cherry picked from commit 7385876)
    sostock authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    5c236b4 View commit details
    Browse the repository at this point in the history
  12. fix ImmutableDict(pairs...) constructor (#36143)

    It could only handle a couple of pairs, e.g.
    ImmutableDict(1=>1, 2=>2, 3=>3) would throw.
    
    The fix is implemented by adding the
    `ImmutableDict(t::ImmutableDict, pairs...)` constructor,
    which generalizes `ImmutableDict(t::ImmutableDict, pair)`
    (with some similarity to how `push!` accepts multiple items
    to be pushed).
    
    (cherry picked from commit 162cde1)
    rfourquet authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    60bab00 View commit details
    Browse the repository at this point in the history
  13. inference: ignore badly behaving generated functions (#36115)

    fix #36088
    
    (cherry picked from commit 5d6a910)
    vtjnash authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    2f8eb20 View commit details
    Browse the repository at this point in the history
  14. Error when compiling invalid AddrSpacePtrs.

    (cherry picked from commit 968ccfc)
    maleadt authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    62ea26d View commit details
    Browse the repository at this point in the history
  15. Rename AddrSpacePtr to LLVMPtr.

    (cherry picked from commit a6354d9)
    maleadt authored and KristofferC committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    cf26388 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2020

  1. Mark Tuples with Bottom among their parameters as cacheable (#36152)

    Fixes #36100.
    
    (cherry picked from commit 287215f)
    martinholters authored and KristofferC committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    bf34e0a View commit details
    Browse the repository at this point in the history
  2. bump Pkg version

    KristofferC committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    e4b83af View commit details
    Browse the repository at this point in the history
  3. bump Statistics version

    KristofferC committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    3854131 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2020

  1. Allow non-Function callables to be used in count(f, itr) (#36187)

    (cherry picked from commit a51015c)
    tkf authored and KristofferC committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    ea15599 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2020

  1. fix #36272: Error with optional argument in anonymous function define…

    …d in macro (#36273)
    
    (cherry picked from commit 8d91b11)
    simeonschaub authored and KristofferC committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    6c65ec8 View commit details
    Browse the repository at this point in the history
  2. Fix Broadcasting of Bidiagonal (#35281)

    (cherry picked from commit 0e062e9)
    ssikdar1 authored and KristofferC committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    8dec8f1 View commit details
    Browse the repository at this point in the history
  3. Promote on Rational binary operations (#36279)

    (cherry picked from commit 6c760d2)
    Liozou authored and KristofferC committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    ee41310 View commit details
    Browse the repository at this point in the history
  4. Remove init from count! docstring (#36305)

    (cherry picked from commit 33659c7)
    tkf authored and KristofferC committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    1cf4720 View commit details
    Browse the repository at this point in the history
  5. deleteat! : check bounds for the first passed index (#36231)

    * deleteat! : check bounds for the first passed index
    
    All other indices are bound-checked.
    Currently, the behavior looks like:
    ```julia
    julia> deleteat!([1:1000;], [-100])
    
    signal (11): Segmentation fault
    [...]
    
    julia>  deleteat!(BigInt[0], [0])
    free(): invalid next size (normal)
    
    signal (6): Aborted
    [...]
    
    julia> deleteat!(BigInt[0], [-100])
    ERROR: UndefRefError: access to undefined reference
    [...]
    
    julia> deleteat!([0], [0])
    Int64[]
    
    julia> deleteat!([0], [2])
    1-element Array{Int64,1}:
     0
    
    julia> deleteat!([0], [3])
    ERROR: InexactError: check_top_bit(UInt64, -1)
    [...]
    ```
    With this commit, all these expressions throw a `BoundsError`.
    
    * Update base/array.jl
    
    Co-authored-by: Simeon Schaub <[email protected]>
    
    Co-authored-by: Simeon Schaub <[email protected]>
    (cherry picked from commit 6cdfcf9)
    rfourquet authored and KristofferC committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    e2cfc6f View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2020

  1. Switch httpbin tests over to JuliaLang-hosted httpbin mock server (

    …#36336)
    
    (cherry picked from commit 96fc2aa)
    staticfloat authored and KristofferC committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    d3bc87f View commit details
    Browse the repository at this point in the history
  2. more precise inference of splatnew (#35976)

    This allows constant-folding NamedTuple constructors, in turn
    allowing constant prop through keyword arguments.
    
    (cherry picked from commit 7124472)
    JeffBezanson committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    3e5174f View commit details
    Browse the repository at this point in the history