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

Merged
merged 15 commits into from
Jan 12, 2024
Merged

Rollup of 6 pull requests #119889

merged 15 commits into from
Jan 12, 2024

Commits on Jan 11, 2024

  1. Configuration menu
    Copy the full SHA
    68c2f11 View commit details
    Browse the repository at this point in the history
  2. Avoid repetition in flush_delayed calls.

    There are two places that handle normal delayed bugs. This commit
    factors out some repeated code.
    
    Also, we can use `std::mem::take` instead of `std::mem::replace`.
    nnethercote committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    3330940 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Add more information to visit_projection_elem

    Without the starting place, it's hard to retrieve any useful information
    from visiting a projection.
    celinval committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    efab0dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb79bc0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7df43d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    462bcac View commit details
    Browse the repository at this point in the history
  5. Revert "Auto merge of rust-lang#118568 - DianQK:no-builtins-symbols, …

    …r=pnkfelix"
    
    This reverts commit 503e129, reversing
    changes made to 0e7f91b.
    DianQK committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    6d29eac View commit details
    Browse the repository at this point in the history
  6. Revert "Auto merge of rust-lang#113923 - DianQK:restore-no-builtins-l…

    …to, r=pnkfelix"
    
    This reverts commit 8c2b577, reversing
    changes made to 9cf18e9.
    DianQK committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    aa874c5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ca421fe View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#119817 - compiler-errors:normalize-opaques,…

    … r=lcnr
    
    Remove special-casing around `AliasKind::Opaque` when structurally resolving in new solver
    
    This fixes a few inconsistencies around where we don't eagerly resolve opaques to their (locally-defined) hidden types in the new solver. It essentially allows this code to work:
    ```rust
    fn main() {
        type Tait = impl Sized;
        struct S {
            i: i32,
        }
        let x: Tait = S { i: 0 };
        println!("{}", x.i);
    }
    ```
    
    Since `Tait` is defined in `main`, we are able to poke through the type of `x` with deref.
    
    r? lcnr
    GuillaumeGomez authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    46c3c01 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#119819 - chenyukang:yukang-fix-118183-lint,…

    … r=davidtwco
    
    Check rust lints when an unknown lint is detected
    
    Fixes rust-lang#118183
    GuillaumeGomez authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    737452a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#119872 - compiler-errors:eagerly-emit-delay…

    …ed-bugs, r=oli-obk,nnethercote
    
    Give me a way to emit all the delayed bugs as errors (add `-Zeagerly-emit-delayed-bugs`)
    
    This is probably a *better* way to inspect all the delayed bugs in a program that what exists currently (and therefore makes it very easy to choose the right number `N` with `-Zemit-err-as-bug=N`, though I guess the naming is a bit ironic when you pair both of the flags together, but that feels like naming bikeshed more than anything).
    
    This pacifies my only concern with rust-lang#119871 (comment), because (afaict?) that PR doesn't allow you to intercept a delayed bug's stack trace anymore, which as someone who debugs the compiler a lot, is something that I can *promise* that I do.
    
    r? `@nnethercote` or `@oli-obk`
    GuillaumeGomez authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    504794b View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#119877 - celinval:smir-visit-projection, r=…

    …oli-obk
    
    Add more information to `visit_projection_elem`
    
    Without the starting place, it's hard to retrieve any useful information from visiting a projection.
    
    Note: I still need to add a test.
    GuillaumeGomez authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    4d12817 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#119884 - GuillaumeGomez:rename-env-opt, r=d…

    …avidtwco
    
    Rename `--env` option flag to `--env-set`
    
    As discussed [on zulip](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Stabilizing.20.60--env.60.20option.20flag.3F). We rename `--env` to not conflicting names with the [RFC](rust-lang/rfcs#2794).
    
    r? `@davidtwco`
    GuillaumeGomez authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    c997b29 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    dafbe17 View commit details
    Browse the repository at this point in the history