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

[beta] backports #90938

Merged
merged 32 commits into from
Nov 19, 2021
Merged

[beta] backports #90938

merged 32 commits into from
Nov 19, 2021

Commits on Nov 16, 2021

  1. Fix assertion failures in OwnedHandle with windows_subsystem.

    As discussed in rust-lang#88576, raw handle values in Windows can be null, such
    as in `windows_subsystem` mode, or when consoles are detached from a
    process. So, don't use `NonNull` to hold them, don't assert that they're
    not null, and remove `OwnedHandle`'s `repr(transparent)`. Introduce a
    new `HandleOrNull` type, similar to `HandleOrInvalid`, to cover the FFI
    use case.
    
    (cherry picked from commit 3b97481)
    sunfishcode authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    f7acd9f View commit details
    Browse the repository at this point in the history
  2. Fix Windows compilation errors.

    (cherry picked from commit e102c2a)
    sunfishcode authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    2df9cc5 View commit details
    Browse the repository at this point in the history
  3. Document the valid values for HandleOrNull and HandleOrInvalid.

    (cherry picked from commit 5d79870)
    sunfishcode authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    0693aa1 View commit details
    Browse the repository at this point in the history
  4. Ensure that pushing empty path works as before

    Fixes: rust-lang#89658
    (cherry picked from commit 1bb399c)
    seanyoung authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    9654d52 View commit details
    Browse the repository at this point in the history
  5. Feature gate and make must_not_suspend allow-by-default

    This lint is not yet ready for stable use, primarily due to false positives in edge
    cases; we want to test it out more before stabilizing.
    
    (cherry picked from commit 185fa56)
    guswynn authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    427b6a7 View commit details
    Browse the repository at this point in the history
  6. Only use clone3 when needed for pidfd

    In rust-lang#89522 we learned that `clone3` is interacting poorly with Gentoo's
    `sandbox` tool. We only need that for the unstable pidfd extensions, so
    otherwise avoid that and use a normal `fork`.
    
    (cherry picked from commit 85b55ce)
    cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    4b4b56d View commit details
    Browse the repository at this point in the history
  7. Update another comment on fork vs. clone3

    (cherry picked from commit fa2eee7)
    cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    aaa8f4e View commit details
    Browse the repository at this point in the history
  8. Also note tool expectations of fork vs clone3

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    (cherry picked from commit 6edaaa6)
    cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    462002b View commit details
    Browse the repository at this point in the history
  9. Revert "Do not call getpid wrapper after fork in tests"

    This reverts commit 12fbabd.
    
    It was only needed because of using raw `clone3` instead of `fork`, but
    we only do that now when a pidfd is requested.
    
    (cherry picked from commit e96a0a8)
    cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    d658d6d View commit details
    Browse the repository at this point in the history
  10. Fix documentation header sizes

    And add a rustdoc-gui test confirming various header sizes.
    
    (cherry picked from commit 89276ff)
    jsha authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    d19aeb2 View commit details
    Browse the repository at this point in the history
  11. Fixes incorrect handling of ADT's drop requirements

    See rust-lang#90024 (comment)
    
    (cherry picked from commit 9158fc2)
    JakobDegen authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    3374d0d View commit details
    Browse the repository at this point in the history
  12. Add regresstion test for rust-lang#90024.

    Uses 2 MCVEs from the issue tracker that test opposite sides of the problem.
    
    (cherry picked from commit eae42fd)
    JakobDegen authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    4f9474c View commit details
    Browse the repository at this point in the history
  13. Clean up debug statements in needs_drop

    (cherry picked from commit aff37f8)
    JakobDegen authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    d092236 View commit details
    Browse the repository at this point in the history
  14. Fix ICE when forgetting to Box a parameter to a Self::func call

    (cherry picked from commit 4b97023)
    JakobDegen authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    2039a92 View commit details
    Browse the repository at this point in the history
  15. expose default substs in param_env

    (cherry picked from commit c6b6901)
    b-naber authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    7a83694 View commit details
    Browse the repository at this point in the history
  16. add tests

    (cherry picked from commit 0199a81)
    b-naber authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    96fd370 View commit details
    Browse the repository at this point in the history
  17. Update odht crate to 0.3.1 (big-endian bugfix)

    (cherry picked from commit 6771ac3)
    michaelwoerister authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    dc73bdc View commit details
    Browse the repository at this point in the history
  18. Add more missing methods to IntraLinkCrateLoader

    This helps with (but does not fix)
    rust-lang#84738. I tested on
    jyn514/objr@edcee7b
    and still hit ICEs.
    
    (cherry picked from commit cdafe99)
    jyn514 authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    640bfaf View commit details
    Browse the repository at this point in the history
  19. Go back to loading all external crates unconditionally

    This *continues* to cause regressions. This code will be unnecessary
    once access to the resolver happens fully before creating the tyctxt
    (rust-lang#83761), so load all crates unconditionally for now.
    
    (cherry picked from commit 51345a8)
    jyn514 authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    5fd4bb4 View commit details
    Browse the repository at this point in the history
  20. Split doc_cfg and doc_auto_cfg features

    (cherry picked from commit d50a475)
    GuillaumeGomez authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    082accd View commit details
    Browse the repository at this point in the history
  21. Also check for feature gates in "src/test/rustdoc"

    (cherry picked from commit d7afbf6)
    GuillaumeGomez authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    fb40f17 View commit details
    Browse the repository at this point in the history
  22. Apply adjustments for field expression even if inaccessible

    The adjustments are used later by ExprUseVisitor to build Place projections
    and without adjustments it can produce invalid result.
    
    (cherry picked from commit f556075)
    nbdd0121 authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    fed62b2 View commit details
    Browse the repository at this point in the history
  23. introduce an enum for tracking the 2229 migration causes

    (cherry picked from commit 9c84ac8)
    nikomatsakis authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    5de0c84 View commit details
    Browse the repository at this point in the history
  24. rework diagnostic reporting to be more structured

    (cherry picked from commit 76bc027)
    nikomatsakis authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    042c837 View commit details
    Browse the repository at this point in the history
  25. handle case of a variable not captured

    (cherry picked from commit fc8113d)
    nikomatsakis authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    34cd4ef View commit details
    Browse the repository at this point in the history
  26. apply suggestions from code review

    (cherry picked from commit 4154e8a)
    nikomatsakis authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    d9ddee4 View commit details
    Browse the repository at this point in the history
  27. Properly register text_direction_codepoint_in_comment lint.

    (cherry picked from commit 9db9811)
    hkratz authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    e63c3b5 View commit details
    Browse the repository at this point in the history
  28. Bump stage0 to stable 1.56.1

    cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    cba2546 View commit details
    Browse the repository at this point in the history
  29. Use ubuntu image to download openssl, curl sources, cacert.pem

    (cherry picked from commit 3a687e7)
    hkratz authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    236bc61 View commit details
    Browse the repository at this point in the history
  30. Ignore files copied from previous stage when generating hash.

    (cherry picked from commit aef51a0)
    hkratz authored and cuviper committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    69b4a85 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Android is not GNU

    (cherry picked from commit a24e2ed)
    cuviper committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    4d156c3 View commit details
    Browse the repository at this point in the history
  2. Update llvm submodule

    (cherry picked from commit 530cd5b)
    Amanieu authored and cuviper committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    a4a72e7 View commit details
    Browse the repository at this point in the history