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 7 pull requests #108707

Merged
merged 18 commits into from
Mar 3, 2023
Merged

Rollup of 7 pull requests #108707

merged 18 commits into from
Mar 3, 2023

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

compiler-errors and others added 18 commits February 28, 2023 05:59
This is no longer necessary with the new pass manager.
-C passes=list was printing passes for the legacy pass manager.
Use PassBuilder::printPassNames() to print NewPM passes instead.
…ler-errors

new solver: implement canonicalization and region constraints

see the corresponding rustc-dev-guide chapter: https://rustc-dev-guide.rust-lang.org/solve/canonicalization.html

r? ``@compiler-errors``
…in-anon-ct, r=petrochenkov

Deny capturing late-bound non-lifetime param in anon const

Introduce a new AnonConstBoundary so we can detect when we capture a late-bound non-lifetime param with `non_lifetime_binders` enabled.

In the future, we could technically do something like introduce an early-bound parameter on the anon const, and stick the late-bound param in its substs (kinda like how we turn late-bound lifetimes in opaques into early-bound ones). But for now, just deny it so we don't ICE.

Fixes rust-lang#108191
Remove legacy PM leftovers

This drops two leftovers of legacy PM usage:
 * We don't need to initialize passes anymore.
 * The pass listing was still using legacy PM passes. Replace it with the corresponding new PM listing.
…tebank

Fix another ICE in `point_at_expr_source_of_inferred_type`

Types coming from method probes must only be investigated *structurally*, since they often contain escaping infer variables from generalization and autoderef. We already have a hack in this PR that erases variables from types, so just use that.

Fixes rust-lang#108664

The note attached to this error is pretty bad:

```
here the type of `primes` is inferred to be `[_]`
```

But that's unrelated to the PR.

---

Side-note: This is a pretty easy to trigger beta regression, so I've nominated it. Alternatively, I'm slightly inclined to remove this code altogether until it can be reformulated to be more accurate and less ICEy.
…earth

Clippy Fix array-size-threshold config deserialization error

Complementary PR to rust-lang#108673 in order to also get this into the **next** beta.

r? ``@Mark-Simulacrum``
…rochenkov

Match unmatched backticks in compiler/

Found with GNU grep:
```
grep -rEn '^(([^`]*`){2})*[^`]*`[^`]*$' compiler/ | rg -v '\s*[//]?.{1,2}```'
```
…ts, r=Nilstrieb

Match unmatched backticks in compiler/ comments

r? ``@Nilstrieb`` as per [advice](rust-lang#108685 (comment))
@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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 rollup A PR which is a rollup labels Mar 3, 2023
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=7

@bors
Copy link
Contributor

bors commented Mar 3, 2023

📌 Commit 01fc5a7 has been approved by matthiaskrgr

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 Mar 3, 2023
@bors
Copy link
Contributor

bors commented Mar 3, 2023

⌛ Testing commit 01fc5a7 with merge e0aedc74a0dea30b0cca8d50d7665af54904809d...

@bors
Copy link
Contributor

bors commented Mar 3, 2023

💔 Test failed - checks-actions

@matthiaskrgr
Copy link
Member Author

@bors retry #108227

@bors
Copy link
Contributor

bors commented Mar 3, 2023

⌛ Testing commit 01fc5a7 with merge 44cfafe...

@bors
Copy link
Contributor

bors commented Mar 3, 2023

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 44cfafe to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 3, 2023
@bors bors merged commit 44cfafe into rust-lang:master Mar 3, 2023
@rustbot rustbot added this to the 1.69.0 milestone Mar 3, 2023
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Perf Build Sha
#108694 b8a0b9fc7d811e0aca6778ecea7f4ebf361cded9
#108685 683985ea59507aca27fbd848ebcaf79dfa4d5f08
#108674 c620803fb9911742cc0ca1c451153141d60f1c62
#108667 0ef2b88f646d49b77f64a22f7d39c7771c70dd9c
#108599 a121b315ca0a9bde5cc5949827bf315cccf8a9b8
#108553 3ea0801a94b2e25bafe682219b907546cb65822d
#107981 7d61b6d36149bf108cc1d74a2ce020ae8f241d90

previous master: 7a809ce899

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 (44cfafe): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.7% [0.6%, 0.7%] 2
Regressions ❌
(secondary)
1.5% [1.3%, 1.7%] 6
Improvements ✅
(primary)
-0.4% [-0.4%, -0.3%] 3
Improvements ✅
(secondary)
-0.7% [-1.0%, -0.5%] 9
All ❌✅ (primary) 0.1% [-0.4%, 0.7%] 5

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)
- - 0
Regressions ❌
(secondary)
3.4% [1.8%, 7.3%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.1% [-8.3%, -1.3%] 12
All ❌✅ (primary) - - 0

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)
- - 0
Improvements ✅
(primary)
-0.6% [-0.6%, -0.6%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.6% [-0.6%, -0.6%] 1

@rustbot rustbot added the perf-regression Performance regression. label Mar 4, 2023
@rust-log-analyzer
Copy link
Collaborator

The job i686-mingw-1 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[2564/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/LogBuilderConsumer.cpp.obj
[2565/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/FDRTraceWriter.cpp.obj
[2566/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/BlockVerifier.cpp.obj
[2567/3021] Linking CXX static library lib\libLLVMDebugInfoPDB.a
FAILED: lib/libLLVMDebugInfoPDB.a 
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f lib\libLLVMDebugInfoPDB.a && D:\a\rust\rust\mingw32\bin\ar.exe qc lib\libLLVMDebugInfoPDB.a  @CMakeFiles\LLVMDebugInfoPDB.rsp && D:\a\rust\rust\mingw32\bin\ranlib.exe lib\libLLVMDebugInfoPDB.a && cd ."
D:\a\rust\rust\mingw32\bin\ar.exe: could not create temporary file whilst writing archive: no more archived files
[2568/3021] Linking CXX static library lib\libLLVMObjCopy.a
[2569/3021] Linking CXX static library lib\libLLVMDebugInfoDWARF.a
[2570/3021] Linking CXX static library lib\libLLVMObjectYAML.a
[2571/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/Trace.cpp.obj
[2571/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/Trace.cpp.obj
[2572/3021] Building CXX object lib/XRay/CMakeFiles/LLVMXRay.dir/InstrumentationMap.cpp.obj
[2573/3021] Linking CXX static library lib\libLLVMJITLink.a
[2574/3021] Building CXX object lib/ToolDrivers/llvm-lib/CMakeFiles/LLVMLibDriver.dir/LibDriver.cpp.obj
ninja: build stopped: subcommand failed.
command did not execute successfully, got: exit code: 1


build script failed, must exit now', C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1cd66030c949c28d\cmake-0.1.48\src\lib.rs:975:5
 finished in 243.438 seconds
Build completed unsuccessfully in 0:06:37
Build completed unsuccessfully in 0:06:37
make: *** [Makefile:78: ci-mingw-subset-1] Error 1

@nnethercote
Copy link
Contributor

The keccak and cranelift-codegen regressions are likely noise. Those are historically very noisy benchmarks, and the merge after this one saw them improve, weirdly by more than they regressed in this PR.

Plus there were some small wins, not sure which PR caused them, doesn't really matter.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Mar 4, 2023
@matthiaskrgr matthiaskrgr deleted the rollup-9a2l6pc branch March 16, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.