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 6 pull requests #127706

Merged
merged 27 commits into from
Jul 14, 2024
Merged

Rollup of 6 pull requests #127706

merged 27 commits into from
Jul 14, 2024

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 6, 2024

  1. 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

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. Configuration menu
    Copy the full SHA
    4d35754 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17419f6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    42ee400 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. 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 authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    4c493db View commit details
    Browse the repository at this point in the history
  2. 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 authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    1d59d22 View commit details
    Browse the repository at this point in the history
  3. 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 authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    1c8ea14 View commit details
    Browse the repository at this point in the history
  4. 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 authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    125343e View commit details
    Browse the repository at this point in the history
  5. 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 authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    2d8493b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#127671 - notriddle:notriddle/issue-d, r=Mar…

    …k-Simulacrum
    
    rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 8)
    
    Follow up
    
    * rust-lang#116214
    * rust-lang#116432
    * rust-lang#116824
    * rust-lang#118105
    * rust-lang#119561
    * rust-lang#123574
    * rust-lang#125382
    
    As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
    workingjubilee authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    6a3566c View commit details
    Browse the repository at this point in the history