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

Conversation

GuillaumeGomez
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

compiler-errors and others added 15 commits January 11, 2024 16:54
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`.
Without the starting place, it's hard to retrieve any useful information
from visiting a projection.
…r=pnkfelix"

This reverts commit 503e129, reversing
changes made to 0e7f91b.
…to, r=pnkfelix"

This reverts commit 8c2b577, reversing
changes made to 9cf18e9.
… 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
… r=davidtwco

Check rust lints when an unknown lint is detected

Fixes rust-lang#118183
…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`
…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.
…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`
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) rollup A PR which is a rollup labels Jan 12, 2024
@GuillaumeGomez
Copy link
Member Author

@bors r+ p=5 rollup=never

@bors
Copy link
Contributor

bors commented Jan 12, 2024

📌 Commit dafbe17 has been approved by GuillaumeGomez

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 12, 2024
@bors
Copy link
Contributor

bors commented Jan 12, 2024

⌛ Testing commit dafbe17 with merge ce1f2cc...

@bors
Copy link
Contributor

bors commented Jan 12, 2024

☀️ Test successful - checks-actions
Approved by: GuillaumeGomez
Pushing ce1f2cc to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 12, 2024
@bors bors merged commit ce1f2cc into rust-lang:master Jan 12, 2024
12 checks passed
@rustbot rustbot added this to the 1.77.0 milestone Jan 12, 2024
@GuillaumeGomez GuillaumeGomez deleted the rollup-ah3dhya branch January 12, 2024 19:52
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#119817 Remove special-casing around AliasKind::Opaque when struc… 30564dae8414f3960458ee792c235b3e800da6c6 (link)
#119819 Check rust lints when an unknown lint is detected 1f0604a32710a03a4b333bdab33d532e577cc5b8 (link)
#119872 Give me a way to emit all the delayed bugs as errors (add `… 325fb2a646ad756d3d8192044831080187211ea5 (link)
#119877 Add more information to visit_projection_elem 8f51bad73739ee3447c8a6523d6aab1ac9046d1a (link)
#119884 Rename --env option flag to --env-set 100fdf7b520c7a517a85582adc9c0846a9429a92 (link)
#119885 Revert #113923 685ad037fb851175a5ad2a1f3fa5a3cb142c83a1 (link)

previous master: 174e73a3f6

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ce1f2cc): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.8% [-1.9%, -1.7%] 4
Improvements ✅
(secondary)
-4.3% [-7.4%, -1.3%] 2
All ❌✅ (primary) -1.8% [-1.9%, -1.7%] 4

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.6% [0.4%, 5.5%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.7% [-5.3%, -0.8%] 3
Improvements ✅
(secondary)
-3.2% [-4.6%, -2.1%] 3
All ❌✅ (primary) 0.3% [-5.3%, 5.5%] 7

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.5% [1.1%, 4.0%] 3
Improvements ✅
(primary)
-1.5% [-2.4%, -0.5%] 8
Improvements ✅
(secondary)
-5.0% [-8.2%, -1.9%] 2
All ❌✅ (primary) -1.5% [-2.4%, -0.5%] 8

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 669.852s -> 666.309s (-0.53%)
Artifact size: 308.36 MiB -> 308.10 MiB (-0.08%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants