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 7 pull requests #82831

Closed
wants to merge 79 commits into from
Closed

Commits on Jan 29, 2021

  1. Indicate both start and end of pass RSS in time-passes output

    Previously, only the end of pass RSS was indicated. This could easily
    lead one to believe that the change in RSS from one pass to the next was
    attributable to the second pass, when in fact it occurred between the
    end of the first pass and the start of the second.
    
    Also, improve alignment of columns.
    tgnottingham committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    2b8f2ac View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2021

  1. Configuration menu
    Copy the full SHA
    a75f9bc View commit details
    Browse the repository at this point in the history
  2. Merge branch 'sync_from_rust'

    bjorn3 committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    eeb75c7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#81618 - bjorn3:sync_cg_clif-2021-02-01, r=b…

    …jorn3
    
    Sync rustc_codegen_cranelift
    
    The highlight of this sync are abi compatibility with cg_llvm allowing mixing of cg_clif and cg_llvm compiled crates and switching to the x64 cranelift backend based on the new backend framework.
    
    r? ``@ghost``
    
    ``@rustbot`` label +A-codegen +A-cranelift +T-compiler
    jonas-schievink committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    02e1fd4 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Sync from rust d60b29d

    bjorn3 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    d1df92e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4ae9ef View commit details
    Browse the repository at this point in the history
  3. Fix rustc bootstrap test

    bjorn3 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    54523b8 View commit details
    Browse the repository at this point in the history
  4. Add a new ABI to support cmse_nonsecure_call

    This commit adds a new ABI to be selected via `extern
    "C-cmse-nonsecure-call"` on function pointers in order for the compiler to
    apply the corresponding cmse_nonsecure_call callsite attribute.
    For Armv8-M targets supporting TrustZone-M, this will perform a
    non-secure function call by saving, clearing and calling a non-secure
    function pointer using the BLXNS instruction.
    
    See the page on the unstable book for details.
    
    Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
    hug-dev committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    5bdc56c View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. Update Cranelift

    bjorn3 committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    0f861e1 View commit details
    Browse the repository at this point in the history
  2. Update dependencies

    bjorn3 committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    2d3603f View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    bjorn3 committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    decb9b2 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2021

  1. Sync from rust f4008fe

    bjorn3 committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    f36c14f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    176965f View commit details
    Browse the repository at this point in the history
  3. Update Cranelift

    bjorn3 committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    6fe5eac View commit details
    Browse the repository at this point in the history
  4. Update libc and libloading

    bjorn3 committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    bfcf97b View commit details
    Browse the repository at this point in the history
  5. Revert "Update libc and libloading"

    This reverts commit bfcf97b.
    
    It causes a "can't resolve symbol" crash on macOS
    bjorn3 committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    c5dff34 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

  1. Stabilize str_split_once

    jhpratt committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    260a5d4 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2021

  1. Pass around BackendConfig

    bjorn3 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    94aac0a View commit details
    Browse the repository at this point in the history
  2. Rustfmt

    bjorn3 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    658d124 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2021

  1. Use #!/usr/bin/env bash

    FreeBSD doesn't have /bin/bash
    bjorn3 committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    9be3936 View commit details
    Browse the repository at this point in the history
  2. Recognize FreeBSD as OS

    bjorn3 committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    87ecdaa View commit details
    Browse the repository at this point in the history
  3. Test FreeBSD on Cirrus CI

    bjorn3 committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    47bc1db View commit details
    Browse the repository at this point in the history
  4. Merge pull request rust-lang#1138 from bjorn3/cirrus_ci

    Test FreeBSD on CI
    bjorn3 committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    1337f96 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

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

Commits on Feb 18, 2021

  1. Update Cranelift

    bjorn3 committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    c39cb46 View commit details
    Browse the repository at this point in the history
  2. Remove support for x86 oldBE

    bjorn3 committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    92f765f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2f5452 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    537db9a View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

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

Commits on Feb 20, 2021

  1. Disable stack2reg optimization

    It causes a miscompilation of lewton
    
    Fixes rust-lang#1142
    bjorn3 committed Feb 20, 2021
    Configuration menu
    Copy the full SHA
    92c1b85 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2021

  1. Merge pull request rust-lang#1140 from bjorn3/no_more_oldbe

    Remove support for the old x86 Cranelift backend
    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    4cfb885 View commit details
    Browse the repository at this point in the history
  2. Don't import the metadata symbol

    Helps with rust-lang#1134
    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    25f7eee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8f3877 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b36fd9d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    93373e1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4f45ea7 View commit details
    Browse the repository at this point in the history
  7. Remove shift amount masking

    Unlike the old x75 backend, the new x64 backend masks the shift amount
    itself, matching the specified semantics.
    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    c5f98b5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9c98027 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ee36a1f View commit details
    Browse the repository at this point in the history
  10. Fix CI

    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    b0f870e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    74f39b6 View commit details
    Browse the repository at this point in the history
  12. Assume constants can't fail to evaluate

    See rust-lang#81327 for the same change to cg_llvm
    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    0610490 View commit details
    Browse the repository at this point in the history
  13. Revert "Remove shift amount masking"

    This reverts commit c5f98b5.
    
    It turns out to be necessary anyway
    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    7fc3483 View commit details
    Browse the repository at this point in the history
  14. Various enum to int cast fixes

    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    ecba16f View commit details
    Browse the repository at this point in the history
  15. Sync from rust 3e826bb

    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    4eb6754 View commit details
    Browse the repository at this point in the history
  16. Rustfmt

    bjorn3 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    013b3c5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a5bf6d2 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Update Cranelift

    bjorn3 committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    d5ac849 View commit details
    Browse the repository at this point in the history
  2. Update dependencies

    bjorn3 committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    b0028fa View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. Configuration menu
    Copy the full SHA
    c247446 View commit details
    Browse the repository at this point in the history
  2. Update Cranelift

    bjorn3 committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    ef96a0f View commit details
    Browse the repository at this point in the history
  3. Use dynamic dispatch for the inner Module

    This improves compilation time and shrinks the linked backend from
    13MB to 9.7MB on Linux.
    bjorn3 committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    73d3a1c View commit details
    Browse the repository at this point in the history
  4. Merge pull request rust-lang#1144 from bjorn3/dynamic_module

    Use dynamic dispatch for the inner Module
    bjorn3 committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    86c5944 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. Rollup merge of rust-lang#81940 - jhpratt:stabilize-str_split_once, r…

    …=m-ou-se
    
    Stabilize str_split_once
    
    Closes rust-lang#74773
    GuillaumeGomez committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    8b7d335 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

  1. Update Cranelift

    bjorn3 committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    27a5f4f View commit details
    Browse the repository at this point in the history
  2. Fix bootstrap test script

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

Commits on Mar 2, 2021

  1. Clean up error reporting for deprecated passes

    - Use spans for deprecated attributes
    - Use a proper diagnostic for unknown passes, instead of error logging
    - Add tests for unknown passes
    - Improve some wording in diagnostics
    jyn514 committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    44c2794 View commit details
    Browse the repository at this point in the history
  2. Report that doc(plugins) doesn't work using diagnostics instead of …

    …`println!`
    
    This also adds a test for the output and fixes `rustc_attr` to properly
    know that `plugins` is a valid attribute.
    jyn514 committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    d5c300b View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2021

  1. Fix diagnostic suggests adding type [type error]

    Fixes rust-lang#79040
    
    Unresolved questions:
    
    Why does this change output the diagnostic twice?
    
    Why does the CI fail when the errors are pointed out (UI tests)?
    henryboisdequin committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    d9d6921 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2021

  1. Don't require a DocContext for report_diagnostic

    This is needed for the next commit, which needs access to the `cx` from
    within the `decorate` closure.
    
    - Change `as_local_hir_id` to an associated function, since it only
      needs a `TyCtxt`
    - Change `source_span_for_markdown_range` to only take a `TyCtxt`
    jyn514 committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    b3c4e25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    675edd0 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2021

  1. Sync from rust a0d66b5

    bjorn3 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    9406510 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5f67dc View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    bjorn3 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    5e73629 View commit details
    Browse the repository at this point in the history
  4. Store UNVERSIONED_FILES in a data structure

    This allows querying it programatically.
    jyn514 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    69a879f View commit details
    Browse the repository at this point in the history
  5. Disable value debuginfo

    This prevents an expensive Cranelift pass from running to reconstruct the debuginfo
    bjorn3 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    9a0c329 View commit details
    Browse the repository at this point in the history
  6. Prevent Zip specialization from calling __iterator_get_unchecked twic…

    …e with the same index after calling next_back
    SkiFire13 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    2371914 View commit details
    Browse the repository at this point in the history
  7. Add relevant test

    SkiFire13 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    c1bfb9a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7a6ea77 View commit details
    Browse the repository at this point in the history
  9. Add an unstable option to print all unversioned files

    This allows sharing those files between different doc invocations
    without having to know their names ahead of time.
    jyn514 committed Mar 5, 2021
    Configuration menu
    Copy the full SHA
    173d2aa View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2021

  1. address comments

    henryboisdequin committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    7d3a6f1 View commit details
    Browse the repository at this point in the history
  2. Fix typo

    we need to actually -> we actually need to
    
    @rustbot label +C-cleanup
    henryboisdequin committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    0ca63ec View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#82292 - SkiFire13:fix-issue-82291, r=m-ou-se

    Prevent specialized ZipImpl from calling `__iterator_get_unchecked` twice with the same index
    
    Fixes rust-lang#82291
    
    It's open for review, but conflicts with rust-lang#82289, wait before merging. The conflict involves only the new test, so it should be rather trivial to fix.
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    fbdc900 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#82402 - jyn514:module-cache-refcell, r=Guil…

    …laumeGomez
    
    Remove RefCell around `module_trait_cache`
    
    This builds on rust-lang#82018 and should not be merged before.
    
    ## Don't require a `DocContext` for `report_diagnostic`
    
    This is needed for the next commit, which needs mutable access to the `cx` from
    within the `decorate` closure.
    
    - Change `as_local_hir_id` to an associated function, since it only
      needs a `TyCtxt`
    - Change `source_span_for_markdown_range` to only take a `TyCtxt`
    
    ##  Remove RefCell around module_trait_cache
    
    This is mostly just changing lots of functions from `&DocContext` to `&mut DocContext`.
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    739223e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#82651 - jyn514:rustdoc-warnings, r=Guillaum…

    …eGomez
    
    Cleanup rustdoc warnings
    
    ## Clean up error reporting for deprecated passes
    
    Using `error!` here goes all the way back to the original commit, rust-lang#8540. I don't see any reason to use logging; rustdoc should use diagnostics wherever possible. See rust-lang#81932 (comment) for further context.
    
    - Use spans for deprecated attributes
    - Use a proper diagnostic for unknown passes, instead of error logging
    - Add tests for unknown passes
    - Improve some wording in diagnostics
    
    ##  Report that `doc(plugins)` doesn't work using diagnostics instead of `eprintln!`
    
    This also adds a test for the output.
    
    This was added in rust-lang#52194. I don't see any particular reason not to use diagnostics here, I think it was just missed in rust-lang#50541.
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    1e5d74d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#82720 - henryboisdequin:fix-79040, r=oli-obk

    Fix diagnostic suggests adding type `[type error]`
    
    Fixes rust-lang#79040
    
    ### Unresolved questions:
    
    <del>Why does this change output the diagnostic twice (`src/test/ui/79040.rs`)?</del> Thanks `@oli-obk`
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    090489c View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#82803 - jyn514:unversioned-files, r=Guillau…

    …meGomez
    
    rustdoc: Add an unstable option to print all unversioned files
    
    This allows sharing those files between different doc invocations
    without having to know their names ahead of time.
    
    Helps with rust-lang/docs.rs#1302.
    r? `@GuillaumeGomez` cc `@pietroalbini` `@Nemo157`
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    8c591b8 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#82808 - bjorn3:sync_cg_clif-2021-03-05, r=b…

    …jorn3
    
    Sync rustc_codegen_cranelift
    
    The main highlight of this sync is removal of support for the old x86 Cranelift backend. This made it possible to use native atomic instructions rather than hackishly using a global mutex. 128bit integer support has also seen a few bugfixes and performance improvements. And finally I have formatted everything using the same rustfmt config as the rest of this repo.
    
    r? `@ghost`
    
    `@rustbot` label +A-codegen +A-cranelift +T-compiler
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    66f6da4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#82822 - henryboisdequin:fix-typo-rustc, r=o…

    …li-obk
    
    Fix typo
    
    we need to actually -> we actually need to
    
    `@rustbot` label +C-cleanup
    JohnTitor committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    48f5365 View commit details
    Browse the repository at this point in the history