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

Rollup of 8 pull requests #84786

Merged
merged 79 commits into from
May 1, 2021
Merged

Rollup of 8 pull requests #84786

merged 79 commits into from
May 1, 2021

Commits on Mar 29, 2021

  1. Configuration menu
    Copy the full SHA
    07968a0 View commit details
    Browse the repository at this point in the history
  2. Sync from rust 3aedcf0

    bjorn3 committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    5417278 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Add an Mmap wrapper to rustc_data_structures

    This wrapper implements StableAddress and falls back to directly reading
    the file on wasm32
    bjorn3 committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    6e79943 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Build with -Cpanic=unwind by default

    This doesn't enable unwinding as cg_clif doesn't support it yet. It does
    allow for linking to a cg_llvm compiled libstd.so, which uses
    `-Cpanic=unwind`.
    bjorn3 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    afe74d7 View commit details
    Browse the repository at this point in the history
  2. Remove the stack2reg optimization completely

    It is broken and needs to be rewritten from scratch
    bjorn3 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    a793be8 View commit details
    Browse the repository at this point in the history
  3. Remove the cold block optimization

    It isn't effective with the new backend framework
    bjorn3 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    2ceb527 View commit details
    Browse the repository at this point in the history
  4. Revert "Build with -Cpanic=unwind by default"

    This reverts commit afe74d7. It
    shouldn't have been pushed to master as it isn't ready yet.
    bjorn3 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    ab425a4 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. Sync from rust 354cc75

    bjorn3 committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    2cb13ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8114d93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a1cf88 View commit details
    Browse the repository at this point in the history
  4. Fixup previous commit

    bjorn3 committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    0c1725f View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Configuration menu
    Copy the full SHA
    e1a2f0f View commit details
    Browse the repository at this point in the history
  2. Simplify write_metadata

    bjorn3 committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    3d7d08f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ee0aa9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    53bfc67 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

  1. Fix outdated crate names in compiler docs

    Changes `librustc_X` to `rustc_X`, only in documentation comments.
    Plain code comments are left unchanged.
    
    Also fix incorrect file paths.
    pierwill committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    a7c4c3e View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Rustfmt

    bjorn3 committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    29a4a55 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Update Cranelift

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    b6f7e71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3b0f42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    65420b5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request rust-lang#1158 from bjorn3/isolate_mono_items_pr

    Isolate mono items
    bjorn3 authored Apr 14, 2021
    Configuration menu
    Copy the full SHA
    542e73e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b4bf4b5 View commit details
    Browse the repository at this point in the history
  6. Re-use Context in codegen_shim

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    b09b8b1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3e2bdb9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d9e9fed View commit details
    Browse the repository at this point in the history
  9. Inline driver::codegen_crate

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    ba8e610 View commit details
    Browse the repository at this point in the history
  10. Use maybe_create_entry_wrapper again in jit mode

    This simplifies the jit driver a lot
    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    86530f8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6fac7f0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d4d270d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eed9aaa View commit details
    Browse the repository at this point in the history
  14. Fix docs

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    ff38b37 View commit details
    Browse the repository at this point in the history
  15. Add some documentation

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    69102db View commit details
    Browse the repository at this point in the history
  16. Merge pull request rust-lang#1159 from bjorn3/driver_refactorings

    Driver refactorings
    bjorn3 authored Apr 14, 2021
    Configuration menu
    Copy the full SHA
    0319b31 View commit details
    Browse the repository at this point in the history
  17. Time object file writing

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    56bf873 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b477a54 View commit details
    Browse the repository at this point in the history
  19. Sync from rust b203b0d

    bjorn3 committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    607ed91 View commit details
    Browse the repository at this point in the history
  20. Add more SIMD math.h intrinsics

    LLVM supports many functions from math.h in its IR. Many of these have
    single-instruction variants on various platforms. So, let's add them so
    std::arch can use them.
    
    Yes, exact comparison is intentional: rounding must always return a
    valid integer-equal value, except for inf/NAN.
    workingjubilee committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    ea3398a View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2021

  1. Configuration menu
    Copy the full SHA
    73c0db0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24cac8f View commit details
    Browse the repository at this point in the history
  3. Disable new test

    bjorn3 committed Apr 16, 2021
    Configuration menu
    Copy the full SHA
    9443080 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d6c574 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7f0e351 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f3b5e14 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2021

  1. Configuration menu
    Copy the full SHA
    9a3d98d View commit details
    Browse the repository at this point in the history
  2. Fix test

    bjorn3 committed Apr 18, 2021
    Configuration menu
    Copy the full SHA
    a569cb4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e01de0f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf85572 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2021

  1. Configuration menu
    Copy the full SHA
    5285856 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2021

  1. Sync from rust 6df26f8

    bjorn3 committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    05f9602 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdc0aa1 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Support -Ctarget-cpu

    mominul committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    e16ccba View commit details
    Browse the repository at this point in the history
  2. Handle native target-cpu variant

    and raise fatal error if the specified target cpu is not supported
    mominul committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    8eb96b8 View commit details
    Browse the repository at this point in the history
  3. Update the error messsage

    Co-authored-by: bjorn3 <[email protected]>
    mominul and bjorn3 authored Apr 23, 2021
    Configuration menu
    Copy the full SHA
    c4f50fb View commit details
    Browse the repository at this point in the history
  4. Merge pull request rust-lang#1163 from mominul/target_cpu

    Support -Ctarget-cpu
    bjorn3 authored Apr 23, 2021
    Configuration menu
    Copy the full SHA
    31b2963 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. added methods src_root and location to External crate, remove extern_…

    …location function
    Timothée Delabrouille committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    7d09dba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    beb4e31 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2021

  1. Ignore new failing rustc test

    bjorn3 committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    88901ca View commit details
    Browse the repository at this point in the history
  2. only store locations in extern_locations

    Timothée Delabrouille committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    2cc2639 View commit details
    Browse the repository at this point in the history
  3. platform-support.md: Update for consistency with Target Tier Policy

    Split into five sections to match the tiers: "Tier 1 with Host Tools",
    "Tier 1", "Tier 2 with Host Tools", "Tier 2", and "Tier 3". Explain each
    tier briefly in prose, and link to the corresponding section of the
    policy for full requirements.
    
    Drop the `host` columns from the first four, since the different
    sections distinguish that. (Keep the `host` column for "Tier 3", since
    it's a single list and the `host` column just indicates if host tools
    are expected to work.)
    
    Targets with host tools always have full support for std, so drop the
    `std` column from those.
    
    Move the explanations of the `std` column next to the appropriate
    tables, and drop the unknown/WIP case for tier 2 targets.
    
    Use "target" terminology consistently throughout.
    
    Sort each table by target name.
    joshtriplett committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    9a9d9be View commit details
    Browse the repository at this point in the history
  4. Replace llvm::sys::fs::F_None with llvm::sys::fs::OF_None

    The former is deprecated.
    OF_None has been available in LLVM since 2018-06.
    MaskRay committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    0142d1c View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. Configuration menu
    Copy the full SHA
    ada5d2f View commit details
    Browse the repository at this point in the history
  2. Remove unused parameter

    bjorn3 committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    ddd4ce2 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions

    wooster0 authored Apr 30, 2021
    Configuration menu
    Copy the full SHA
    c4fe7c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bea99a5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    505aa48 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9d07b92 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    308ac3b View commit details
    Browse the repository at this point in the history
  8. No-op register_jit on Windows (rust-lang#1170)

    * No-op register_jit on Windows
    
    Co-authored-by: bjorn3 <[email protected]>
    XAMPPRocky and bjorn3 authored Apr 30, 2021
    Configuration menu
    Copy the full SHA
    15c8d31 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ef53ebc View commit details
    Browse the repository at this point in the history
  10. Update cargo

    ehuss committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    9570bc9 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2021

  1. Fix misspelling

    kraai committed May 1, 2021
    Configuration menu
    Copy the full SHA
    b86ca0b View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#84601 - tdelabro:rustdoc-get-rid-of-cache-e…

    …xtern_locations, r=jyn514
    
    rustdoc: Only store locations in Cache::extern_locations and calculate the other info on-demand
    
     help rust-lang#84588
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    e30d952 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#84704 - joshtriplett:platform-support-targe…

    …t-tier-policy, r=pietroalbini
    
    platform-support.md: Update for consistency with Target Tier Policy
    
    Split into five sections to match the tiers: "Tier 1 with Host Tools",
    "Tier 1", "Tier 2 with Host Tools", "Tier 2", and "Tier 3". Explain each
    tier briefly in prose, and link to the corresponding section of the
    policy for full requirements.
    
    Drop the `host` columns from the first four, since the different
    sections distinguish that. (Keep the `host` column for "Tier 3", since
    it's a single list and the `host` column just indicates if host tools
    are expected to work.)
    
    Targets with host tools always have full support for std, so drop the
    `std` column from those.
    
    Move the explanations of the `std` column next to the appropriate
    tables, and drop the unknown/WIP case for tier 2 targets.
    
    Use "target" terminology consistently throughout.
    
    Sort each table by target name.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    e69f1fd View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#84724 - MaskRay:sys-fs, r=petrochenkov

    Replace llvm::sys::fs::F_None with llvm::sys::fs::OF_None
    
    The former is deprecated.
    OF_None has been available in LLVM since 2018-06.
    
    -----
    
    OF_None (https://reviews.llvm.org/rG1f67a3cba9b09636c56e2109d8a35ae96dc15782) exists in LLVM 9.
    https://reviews.llvm.org/D101506 may drop `F_None` support.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    4d6d26e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#84740 - r00ster91:patch-6, r=GuillaumeGomez

    Reset the docs' copy path button after 1 second
    
    I like that this copy path button on the top next to the type/module's name changes to a check mark when you successfully clicked and copied the path but I find it really weird how the icon stays that check mark forever after the first time of clicking it. Imagine you leave that documentation tab open and come back after 2 hours and you still see that check mark in that box because you copied the path 2 hours ago. You will probably be confused and you might've forgotten what that button even does (even more so currently where this is a new feature, or when you simply don't use it often), so I really think at some point it should go back to the ⎘ icon which, at least to me, pretty clearly indicates copying, whereas the check mark (if it stays there for so long) could falsely look like a verification mark indicating "this module is verified" or something like that.
    I believe after a longer period of time it's not logical to still tell the user "yes you've copied this successful".
    
    In addition to this timeout, maybe it could be made so that you can't copy again until this cooldown of 1 second is over, but I'm not sure how useful or user-friendly that feature would be so maybe it's fine the way it is now.
    Also the timeout is cleared every time you click again so if you constantly click it, it won't reset during that.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    a4dbb8c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#84749 - XAMPPRocky:cranelift-rebase, r=bjorn3

    Sync `rustc_codegen_cranelift`
    
    Retrying rust-lang#84746
    
    r? ``@bjorn3``
    
    ---
    
    Edit(bjorn3): Since the last sync there have been some refactorings around the driver code in preparation for a planned new feature. In addition ``@mominul`` implemented `-Ctarget-cpu` support and ``@XAMPPRocky`` fixed compilation of cg_clif itself for Windows with the MSVC toolchain.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    fc850b6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#84756 - badboy:toc-for-tier-policy, r=Guill…

    …aumeGomez
    
    Add a ToC to the Target Tier Policy documentation
    
    The policy document is quite lengthy, I figured it might be good to have a quick way to jump to the specific tier policies.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    08b2a45 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#84765 - ehuss:update-cargo, r=ehuss

    Update cargo
    
    7 commits in 4369396ce7d270972955d876eaa4954bea56bcd9..f3e13226d6d17a2bc5f325303494b43a45f53b7f
    2021-04-27 14:35:53 +0000 to 2021-04-30 21:50:27 +0000
    - Fix problem with metrics test. (rust-lang/cargo#9440)
    - Show transfer rate when fetching/updating registry index (rust-lang/cargo#9395)
    - Fix collision doc tests randomly failing. (rust-lang/cargo#9434)
    - Add missing tracking issues and unstable docs. (rust-lang/cargo#9429)
    - Fix dep-info files emitting paths relative to deps' roots (rust-lang/cargo#9421)
    - Upgrade to GitHub-native Dependabot (rust-lang/cargo#9428)
    - Only deny the `unused_mut` lint (rust-lang/cargo#9425)
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    4a6fe20 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#84774 - kraai:fix-misspelling, r=jyn514

    Fix misspelling
    
    Fix a misspelling of "or" in the source_code_based_coverage section of
    *The Rust Unstable Book*.
    JohnTitor authored May 1, 2021
    Configuration menu
    Copy the full SHA
    6af045f View commit details
    Browse the repository at this point in the history