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 10 pull requests #96093

Closed
wants to merge 27 commits into from
Closed

Commits on Mar 4, 2022

  1. Configuration menu
    Copy the full SHA
    d78e3e3 View commit details
    Browse the repository at this point in the history
  2. Add missing platform support docs to sidebar

    Also sort sidebar alphabetically by document filename
    Michcioperz committed Mar 4, 2022
    Configuration menu
    Copy the full SHA
    c1d5c2b View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

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

Commits on Mar 24, 2022

  1. Configuration menu
    Copy the full SHA
    9cfdb89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c681a88 View commit details
    Browse the repository at this point in the history
  3. Add test

    bjorn3 committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    147e5da View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2022

  1. Stablize const_extern_fn for "Rust" and "C"

    All other ABIs are left unstable for now.
    
    cc rust-lang#64926
    Aaron1011 committed Mar 26, 2022
    Configuration menu
    Copy the full SHA
    8035796 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Revert "Work around invalid DWARF bugs for fat LTO"

    Since September, the toolchain has not been generating reliable DWARF
    information for static variables when LTO is on. This has affected
    projects in the embedded space where the use of LTO is typical. In our
    case, it has kept us from bumping past the 2021-09-22 nightly toolchain
    lest our debugger break. This has been a pretty dramatic regression for
    people using debuggers and static variables. See rust-lang#90357 for more info
    and a repro case.
    
    This commit is a mechanical revert of
    d5de680 from PR rust-lang#89041, which caused
    the issue. (Note on that PR that the commit's author has requested it be
    reverted.)
    
    I have locally verified that this fixes rust-lang#90357 by restoring the
    functionality of both the repro case I posted on that bug, and debugger
    behavior on real programs. There do not appear to be test cases for this
    in the toolchain; if I've missed them, point me at 'em and I'll update
    them.
    cbiffle committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    98190b7 View commit details
    Browse the repository at this point in the history
  2. Improve debuginfo test coverage for simple statics.

    - Re-enabled basic-types-globals which has been disabled since 2018
    - Updated its now-rotted assertions about GDB's output to pass
    - Rewrote header comment describing some previous state of GDB behavior
      that didn't match either the checked-in assertions _or_ the current
      behavior, and so I assume has just been wrong for some time.
    - Copy-pasta'd the test into a version that uses LTO to check for
      regression on rust-lang#90357, because I don't see a way to matrix the same
      test into several build configurations.
    cbiffle committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    42af197 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2022

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

Commits on Apr 12, 2022

  1. Configuration menu
    Copy the full SHA
    7f945b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e886dc5 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. Update books

    ehuss committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    849ede1 View commit details
    Browse the repository at this point in the history
  2. docs: add link from zip to unzip

    The docs for `Iterator::unzip` explain that it is kind of an inverse operation to `Iterator::zip` and guide the reader to the `zip` docs, but the `zip` docs don't let the user know that they can undo the `zip` operation with `unzip`. This change modifies the docs to help the user find `unzip`.
    beyarkay authored Apr 14, 2022
    Configuration menu
    Copy the full SHA
    f6d9577 View commit details
    Browse the repository at this point in the history
  3. Remove trailing whitespace

    Co-authored-by: Mara Bos <[email protected]>
    beyarkay and m-ou-se authored Apr 14, 2022
    Configuration menu
    Copy the full SHA
    d73e328 View commit details
    Browse the repository at this point in the history
  4. update: actions/checkout@v2 to actions/checkout@v3

    update: actions/checkout@v2 to actions/checkout@v3 for all yaml files
    
    Revert "update: actions/checkout@v2 to actions/checkout@v3 for all yaml files"
    
    This reverts commit 7445e582b900f0f56f5f2bd9036aacab97ef28e9.
    
    change GitHub Actions version v2 to v3
    
    change GitHub Actions
    Gumichocopengin8 committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    9d319f3 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. add codegen smoke test

    RalfJung committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    73f9571 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#93969 - bjorn3:codegen_backend_dep_info, r=…

    …pnkfelix
    
    Only add codegen backend to dep info if -Zbinary-dep-depinfo is used
    
    I am currently migrating the cg_clif build system from using a binary linked to the codegen backend as rustc replacement to passing `-Zcodegen-backend` instead. Without this PR this would force cargo to rebuild the sysroot on any change to the codegen backend even if I explicitly specify that I want it to be preserved, which would make development of cg_clif a lot slower. If you still want to have changes to the codegen backend invalidate the cargo build cache you can explicitly specify `-Zbinary-dep-depinfo`.
    
    cc `````@eddyb````` as the codegen backend was initially added to the depinfo for rust-gpu.
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    33c92d7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#94605 - Michcioperz:patch-1, r=pnkfelix

    Add missing links in platform support docs
    
    I was looking at m68k support and saw that https://doc.rust-lang.org/rustc/platform-support.html and the sidebar there were missing some links to target documentation
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    58874c7 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#94985 - dtolnay:constattr, r=pnkfelix

    Parse inner attributes on inline const block
    
    According to rust-lang#84414 (comment), inner attributes are intended to be supported *"in all containers for statements (or some subset of statements)"*.
    
    This PR adds inner attribute parsing and pretty-printing for inline const blocks (rust-lang#76001), which contain statements just like an unsafe block or a loop body.
    
    ```rust
    let _ = const {
        #![allow(...)]
    
        let x = ();
        x
    };
    ```
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    15c0e29 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#95346 - Aaron1011:stablize-const-extern-fn,…

    … r=pnkfelix
    
    Stablize `const_extern_fn` for "Rust" and "C"
    
    All other ABIs are left unstable for now.
    
    cc rust-lang#64926
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    869c3bb View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#95685 - oxidecomputer:restore-static-dwarf,…

    … r=pnkfelix
    
    Revert "Work around invalid DWARF bugs for fat LTO"
    
    Since September, the toolchain has not been generating reliable DWARF
    information for static variables when LTO is on. This has affected
    projects in the embedded space where the use of LTO is typical. In our
    case, it has kept us from bumping past the 2021-09-22 nightly toolchain
    lest our debugger break. This has been a pretty dramatic regression for
    people using debuggers and static variables. See rust-lang#90357 for more info
    and a repro case.
    
    This commit is a mechanical revert of
    d5de680 from PR rust-lang#89041, which caused
    the issue. (Note on that PR that the commit's author has requested it be
    reverted.)
    
    I have locally verified that this fixes rust-lang#90357 by restoring the
    functionality of both the repro case I posted on that bug, and debugger
    behavior on real programs. There do not appear to be test cases for this
    in the toolchain; if I've missed them, point me at 'em and I'll update
    them.
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    14f49d1 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#95908 - compiler-errors:shallow_resolve_ty-…

    …inline, r=oli-obk
    
    Inline `shallow_resolve_ty` into `ShallowResolver`
    
    addresses fixme I found in infcx
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    126820b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#95961 - RalfJung:gather-scatter, r=workingj…

    …ubilee
    
    implement SIMD gather/scatter via vector getelementptr
    
    Fixes rust-lang/portable-simd#271
    
    However, I don't *really* know what I am doing here... Cc `@workingjubilee` `@calebzulawski`
    
    I didn't do anything for cranelift -- `@bjorn3` not sure if it's okay for that backend to temporarily break. I'm happy to cherry-pick a patch that adds cranelift support. :)
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    21d5715 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#96032 - ehuss:update-books, r=ehuss

    Update books
    
    ## nomicon
    
    1 commits in 11f1165e8a2f5840467e748c8108dc53c948ee9a..c7d8467ca9158da58ef295ae65dbf00a308752d9
    2022-03-19 16:02:00 -0400 to 2022-04-06 14:26:54 +0900
    - Change "writers" to "readers" for Deref. (rust-lang/nomicon#346)
    
    ## reference
    
    7 commits in c97d14fa6fed0baa9255432b8a93cb70614f80e3..b5f6c2362baf932db9440fbfcb509b309237ee85
    2022-03-19 18:18:10 -0700 to 2022-04-10 19:19:51 -0700
    - Fix typo: `?` should be inside `&lt;sup&gt;` tags (rust-lang/reference#1190)
    - Update aarch64 to use neon as fp (rust-lang/reference#1184)
    - Boolean literal expressions (rust-lang/reference#1189)
    - Document that unary negation of a signed integer literal cannot cause an overflow error (rust-lang/reference#1188)
    - Document compatibility between declarative and procedural macro tokens (rust-lang/reference#1169)
    - Document native library modifier syntax and the `whole-archive` modifier specifically (rust-lang/reference#1170)
    - Numeric literal expressions and literal suffixes (rust-lang/reference#1177)
    
    ## book
    
    8 commits in ea90bbaf53ba64ef4e2da9ac2352b298aec6bec8..765318b844569a642ceef7bf1adab9639cbf6af3
    2022-03-28 21:59:34 -0400 to 2022-04-12 21:14:47 -0400
    - Propagate nostarch edits to src
    - Propagate updated test example code to nostarch snapshot
    - Edits to nostarch edits
    - edits from nostarch
    - Fix error message for the example code
    - update ch13-02 to reflect changes in rust-lang/book#2797
    - Update to 1.59
    - Edits to chapter 2 after tech review
    
    ## rust-by-example
    
    4 commits in ec954f35eedf592cd173b21c05a7f80a65b61d8a..c2a98d9fc5d29c481d42052fbeccfde15ed03116
    2022-03-22 11:09:06 -0300 to 2022-04-08 06:44:18 -0300
    - Code highlight a variable (rust-lang/rust-by-example#1530)
    - Add a comment to note that warnings may not be shown in a browser in the Variable Bindings section (rust-lang/rust-by-example#1529)
    - Make all new types have UpperCamelCase names in code example in the Aliasing section (rust-lang/rust-by-example#1528)
    - Replace `C` with C/C++ (rust-lang/rust-by-example#1527)
    
    ## rustc-dev-guide
    
    6 commits in 155126b1d2e2cb01ddb1d7ba9489b90d7cd173ad..eeb5a83c15b6ae60df3e4f19207376b22c6fbc4c
    2022-03-22 14:34:21 +0100 to 2022-04-11 23:29:48 +0900
    - method-lookup.md improvements (rust-lang/rustc-dev-guide#1296)
    - Consolidate crates.io convention section (rust-lang/rustc-dev-guide#1326)
    - Update examples with 1.61.0-nightly (latest version) (rust-lang/rustc-dev-guide#1330)
    - r-a: Use `python3 x.py` instead of `./x.py` (rust-lang/rustc-dev-guide#1335)
    - Update miri.md: correct a minor typo (rust-lang/rustc-dev-guide#1334)
    - Add example how lints can be feature gated
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    f1bf5da View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#96035 - Gumichocopengin8:feature/update-git…

    …hub-action-version, r=pietroalbini
    
    Update GitHub Actions actions/checkout Version v2 -> v3
    
    Update `actions/checkout@v2` to `actions/checkout@v3` because of Node12 will be out of life after Aril 30, 2022 [[Reference](https://nodejs.org/en/about/releases/)].
    `actions/xxxx@v3` use Node16 whose support lasts until April 30, 2024.
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    70ad108 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#96038 - beyarkay:patch-1, r=m-ou-se

    docs: add link from zip to unzip
    
    The docs for `Iterator::unzip` explain that it is kind of an inverse operation to `Iterator::zip` and guide the reader to the `zip` docs, but the `zip` docs don't let the user know that they can undo the `zip` operation with `unzip`. This change modifies the docs to help the user find `unzip`.
    RalfJung authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    4d2c9d0 View commit details
    Browse the repository at this point in the history