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 9 pull requests #127695

Closed
wants to merge 35 commits into from

Commits on Apr 14, 2024

  1. Configuration menu
    Copy the full SHA
    6bd68fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f238eba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    853311c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0692090 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f0f867e View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Acknowledge comments

    CastilloDel committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    2d5a483 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    a5dc082 View commit details
    Browse the repository at this point in the history
  2. Add experimental raw-dylib feature to std

    For Windows, this allows defining imports without needing the user to have import libraries. It's intended for this to become the default.
    ChrisDenton committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    e136f08 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. use "bootstrap" instead of "rustbuild" in comments and docs

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    4819270 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Clear inner_attr_ranges regularly.

    There's a comment saying we don't do it for performance reasons, but it
    doesn't actually affect performance.
    
    The commit also tweaks the control flow, to make clearer that two code
    paths are mutually exclusive.
    nnethercote committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    99721c8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a47ae57 View commit details
    Browse the repository at this point in the history
  3. Use iterator normally in make_attr_token_stream.

    In a `for` loop, instead of a `while` loop.
    nnethercote committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    b162013 View commit details
    Browse the repository at this point in the history
  4. Split the stack in make_attr_token_stream.

    It makes for shorter code, and fewer allocations.
    nnethercote committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    a88c4d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Move Spacing into FlatToken.

    It's only needed for the `FlatToken::Token` variant. This makes things a
    little more concise.
    nnethercote committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    f552794 View commit details
    Browse the repository at this point in the history
  2. Promote the wasm32-wasip2 target to Tier 2

    This commit promotes the `wasm32-wasip2` Rust target to tier 2 as
    proposed in rust-lang/compiler-team#760. There are two major changes in
    this PR:
    
    1. The `dist-various-2` container, which already produces the other WASI
       targets, now has an extra target added for `wasm32-wasip2`.
    2. A new `wasm-component-ld` binary is added to all host toolchains when
       LLD is enabled. This is the linker used for the `wasm32-wasip2` target.
    
    This new linker is added for all host toolchains to ensure that all host
    toolchains can produce the `wasm32-wasip2` target. This is similar to
    how `rust-lld` was originally included for all host toolchains to be
    able to produce WebAssembly output when the targets were first added.
    The new linker is developed [here][wasm-component-ld] and is pulled in
    via a crates.io-based dependency to the tree here.
    
    [wasm-component-ld]: https://github.com/bytecodealliance/wasm-component-ld
    alexcrichton committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    2a3e22b View commit details
    Browse the repository at this point in the history
  3. Update how wasm-component-ld is built

    Reuse preexisting macro and switch it to a "bootstrap tool" to try to
    resolve build issues.
    alexcrichton committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1afdd45 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4cd6eee View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Change empty replace range condition.

    The new condition is equivalent in practice, but it's much more obvious
    that it would result in an empty range, because the condition lines up
    with the contents of the iterator.
    nnethercote committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    8a390ba View commit details
    Browse the repository at this point in the history
  2. Rework Attribute::get_tokens.

    Returning `Vec<TokenTree>` works better for the call sites than
    returning `TokenStream`.
    nnethercote committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    fee1525 View commit details
    Browse the repository at this point in the history
  3. Use cfg_attr as a name more.

    In various functions where the attribute being processed is known to be
    a `#[cfg_attr(...)]` attribute. I find this a helpful reminder.
    nnethercote committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    d8b6aa6 View commit details
    Browse the repository at this point in the history
  4. Factor out AttrsTarget flattening code.

    This commit does the following.
    - Pulls the code out of `AttrTokenStream::to_token_trees` into a new
      function `attrs_and_tokens_to_token_trees`.
    - Simplifies `TokenStream::from_ast` by calling the new function. This
      is nicer than the old way, which created a temporary
      `AttrTokenStream` containing a single `AttrsTarget` (which required
      some cloning) just to call `to_token_trees` on it. (It is good to
      remove this use of `AttrsTarget` which isn't related to `cfg_attr`
      expansion.)
    nnethercote committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    d6ebbbf View commit details
    Browse the repository at this point in the history
  5. Add some comments.

    Explaining things that took me some time to work out.
    nnethercote committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    478ba59 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

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

Commits on Jul 13, 2024

  1. use ModeToolBootstrap for run-make-support's crate tests

    We don't need to ensure std (and rustc) for testing run-make-support's
    unit tests. Using stage 0 compiler is already enough and speeds up
    `x test run-make-support` invocations on a clean build.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    fc0d1dc View commit details
    Browse the repository at this point in the history
  2. explain why we use in-tree std for compiletest

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    41070bd View commit details
    Browse the repository at this point in the history
  3. Add 1.80 release notes

    BoxyUwU authored and Mark-Simulacrum committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    4e12172 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#122300 - CastilloDel:master, r=cjgillot

    Add FileCheck annotations to mir-opt/dest-prop tests
    
    Part of rust-lang#116971, adds FileCheck annotations to MIR-opt tests in tests/mir-opt/dest-prop.
    
    I would like some feedback. Also, I don't know how to approach `union.rs`.  I couldn't figure out what it is testing.
    
    r? cjgillot
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    88a7cdb View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126967 - alexcrichton:wasm32-wasip2-tier-2,…

    … r=Mark-Simulacrum
    
    Promote the `wasm32-wasip2` target to Tier 2
    
    This commit promotes the `wasm32-wasip2` Rust target to tier 2 as proposed in rust-lang/compiler-team#760. There are two major changes in this PR:
    
    1. The `dist-various-2` container, which already produces the other WASI targets, now has an extra target added for `wasm32-wasip2`.
    2. A new `wasm-component-ld` binary is added to all host toolchains when LLD is enabled. This is the linker used for the `wasm32-wasip2` target.
    
    This new linker is added for all host toolchains to ensure that all host toolchains can produce the `wasm32-wasip2` target. This is similar to how `rust-lld` was originally included for all host toolchains to be able to produce WebAssembly output when the targets were first added. The new linker is developed [here][wasm-component-ld] and is pulled in via a crates.io-based dependency to the tree here.
    
    [wasm-component-ld]: https://github.com/bytecodealliance/wasm-component-ld
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    a85818e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#127083 - BoxyUwU:relnotes_1_80, r=Mark-Simu…

    …lacrum
    
    Add release notes for 1.80
    
    cc `@rust-lang/release`
    r? `@Mark-Simulacrum`
    
    I tended to err on the side of leaving more stuff in since I don't have a perfect idea of what should or should not be in the release notes right now.
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    06788aa View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#127370 - ChrisDenton:win-sys, r=Mark-Simula…

    …crum
    
    Windows: Add experimental support for linking std-required system DLLs using raw-dylib
    
    For Windows, this allows std to define system imports without needing the user to have import libraries. It's intended for this to become the default.
    
    For now it's an experimental feature so it can be tested using build-std.
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    6820acf View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#127434 - onur-ozkan:use-bootstrap-instead-o…

    …f-rustbuild, r=Mark-Simulacrum
    
    use "bootstrap" instead of "rustbuild" in comments and docs
    
    Let's stick with the single name "bootstrap" to refer to the bootstrap project to avoid confusion. This should make it clearer, especially for new contributors.
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    6a44d83 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#127477 - nnethercote:tweak-inner_attr_range…

    …s, r=petrochenkov
    
    Clear `inner_attr_ranges` regularly.
    
    There's a comment saying we don't do it for performance reasons, but it doesn't actually affect performance.
    
    The commit also tweaks the control flow, to make clearer that two code paths are mutually exclusive.
    
    r? `@petrochenkov`
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    fce04fa View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#127558 - nnethercote:more-Attribute-cleanup…

    …s, r=petrochenkov
    
    More attribute cleanups
    
    A follow-up to rust-lang#127308.
    
    r? `@petrochenkov`
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    90cee91 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#127659 - saethlin:manually-drop-bufwriter, …

    …r=joboet
    
    Use ManuallyDrop in BufWriter::into_parts
    
    The fact that `mem::forget` takes by value means that it interacts very poorly with Stacked Borrows; generally users think of calling it as a no-op, but in Stacked Borrows, the field retagging tends to cause surprise tag invalidation.
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    7321530 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#127677 - onur-ozkan:use-correct-modes, r=Ko…

    …bzol
    
    using correct tool mode for `run-make-support` crate
    
    We don't need to ensure std (and rustc) for testing run-make-support's unit tests. Using stage 0 compiler is already enough and speeds up `x test run-make-support` invocations on a clean build.
    workingjubilee committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    a02a776 View commit details
    Browse the repository at this point in the history