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 #121897

Closed
wants to merge 17 commits into from

Commits on Feb 27, 2024

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

Commits on Feb 28, 2024

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

Commits on Mar 1, 2024

  1. Configuration menu
    Copy the full SHA
    6cb0c40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6136997 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f7b14e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37bbed1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a92e36 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Configuration menu
    Copy the full SHA
    624f9d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec5e2dc View commit details
    Browse the repository at this point in the history
  3. The ordinary lowering of thir::ExprKind::Let is unreachable

    After desugaring, `let` expressions should only appear inside `if` expressions
    or `match` guards, possibly nested within a let-chain. In both cases they are
    specifically handled by the lowerings of those expressions, so this case is
    currently unreachable.
    Zalathar committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    972d8da View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#121194 - beetrees:rustc-raw-args, r=petroch…

    …enkov
    
    Refactor pre-getopts command line argument handling
    
    Rebased version of rust-lang#111658. I've also fixed the Windows CI failure (although I don't have access to Windows to test it myself).
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    49775dd View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#121666 - ChrisDenton:thread-name, r=cuviper

    Use the OS thread name by default if `THREAD_INFO` has not been initialized
    
    Currently if `THREAD_INFO` hasn't been initialized then the name will be set to `None`.  This PR changes it to use the OS thread name by default. This mostly affects foreign threads at the moment but we could expand this to make more use of the OS thread name in the future.
    
    Note: I've only implemented `Thread::get_name` for windows, linux and macos (and macos adjacent) targets. The rest just return `None`.
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    1af11b1 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121758 - joboet:move_pal_thread_local, r=Ch…

    …risDenton
    
    Move thread local implementation to `sys`
    
    Part of rust-lang#117276.
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    26bac2a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#121759 - RalfJung:addr_of, r=the8472

    attempt to further clarify addr_of docs
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    a7d9522 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121888 - cppcoffee:style, r=Nilstrieb

    style library/core/src/error.rs
    
    Add an extra blank line for clarity in distinguishing implementations.
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    e5efece View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#121892 - Zalathar:expr-kind-let, r=Nadrieril

    The ordinary lowering of `thir::ExprKind::Let` is unreachable
    
    After desugaring, `let` expressions should only appear inside `if` expressions or `match` guards, possibly nested within a let-chain. In both cases they are specifically handled by the lowerings of those expressions, so this case is currently unreachable.
    
    ---
    
    Context: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Lowering.20of.20.60thir.3A.3AExprKind.3A.3ALet.60.20is.20unreachable
    
    My conclusions are partly based on the observation that stubbing out this match arm doesn't cause any test failures. So either this really is unreachable, or it can be reached in some obscure circumstances that our test suite doesn't cover.
    
    If we end up needing this code (or something like it) for an implementation of rust-lang/rfcs#3573, it should be easy enough to pull it back out of version control history.
    
    I looked into having the `if`/`match` lowerings call back into `expr_into_dest`, but from what I can tell that won't work well, because there are extra scoping considerations that require some awareness of the enclosing if/match.
    
    r? ``@Nadrieril``
    matthiaskrgr committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6eaf971 View commit details
    Browse the repository at this point in the history