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 3 pull requests #124426

Closed
wants to merge 9 commits into from
Closed

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    b52e4bd View commit details
    Browse the repository at this point in the history
  2. thread_local: use less &mut T in LazyKeyInner::take

    Instead, use raw pointers to accomplish internal mutability throughout.
    workingjubilee committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    538ddb0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    43f21a6 View commit details
    Browse the repository at this point in the history
  4. ast: Generalize item kind visiting

    And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign).
    petrochenkov committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    5be9fdd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7517a4f View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2024

  1. Configuration menu
    Copy the full SHA
    c63b0ce View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#124370 - ShE3py:substitution-part-offset, r…

    …=fee1-dead
    
    Fix substitution parts having a shifted underline in some cases
    
    If two suggestions parts are side by side, the underline's offset:
    (WIP PR as an example, not yet pushed)
    ```
    error: expected a pattern, found an expression
     --> ./main.rs:4:9
      |
    4 |         1 + 2 => 3
      |         ^^^^^ arbitrary expressions are not allowed in patterns
      |
    help: check the value in an arm guard
      |
    4 |         n if n == 1 + 2 => 3
      |         ~     +++++++++++++
    ```
    The emitter didn't take into account that the string had shrunk/grown if two substitution parts were side-by-side (surprisingly, there was only one case in the ui testsuite.)
    
    ```
    help: check the value in an arm guard
      |
    4 |         n if n == 1 + 2 => 3
      |         ~ +++++++++++++
    ```
    
    `@rustbot` label +A-suggestion-diagnostics
    jhpratt authored Apr 27, 2024
    Configuration menu
    Copy the full SHA
    d288cd2 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#124382 - petrochenkov:itemvisit, r=lcnr

    ast: Generalize item kind visiting
    
    And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign).
    
    The diff is better viewed with whitespace ignored.
    jhpratt authored Apr 27, 2024
    Configuration menu
    Copy the full SHA
    185c80f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#124387 - workingjubilee:use-raw-pointers-in…

    …-thread-locals, r=joboet
    
    thread_local: be excruciatingly explicit in dtor code
    
    Use raw pointers to accomplish internal mutability, and clearly split references where applicable. This reduces the likelihood that any of these parts are misunderstood, either by humans or the compiler's optimizations.
    
    Fixes rust-lang#124317
    
    r? `@joboet`
    jhpratt authored Apr 27, 2024
    Configuration menu
    Copy the full SHA
    5045321 View commit details
    Browse the repository at this point in the history