Skip to content

numeric vars can only be unified with numerical types in deep reject #109750

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

Merged

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Mar 30, 2023

Don't consider numeric vars (int and float vars) to unify with non-numeric types during deep reject. This helps us reject incompatible impls sooner.

@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. labels Mar 30, 2023
@compiler-errors
Copy link
Member Author

Not sure how hot this code is

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 30, 2023
@bors
Copy link
Collaborator

bors commented Mar 30, 2023

⌛ Trying commit 1d7192d with merge 150385fcf5e9674355fce2f1c935e0a743fc68dc...

@bors
Copy link
Collaborator

bors commented Mar 30, 2023

☀️ Try build successful - checks-actions
Build commit: 150385fcf5e9674355fce2f1c935e0a743fc68dc (150385fcf5e9674355fce2f1c935e0a743fc68dc)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (150385fcf5e9674355fce2f1c935e0a743fc68dc): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -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)
-0.7% [-1.8%, -0.3%] 28
Improvements ✅
(secondary)
-0.7% [-1.7%, -0.2%] 3
All ❌✅ (primary) -0.7% [-1.8%, -0.3%] 28

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.8% [2.8%, 2.8%] 1
Regressions ❌
(secondary)
2.6% [2.5%, 2.7%] 2
Improvements ✅
(primary)
-1.2% [-1.2%, -1.2%] 1
Improvements ✅
(secondary)
-2.3% [-2.6%, -2.1%] 2
All ❌✅ (primary) 0.8% [-1.2%, 2.8%] 2

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)
-1.7% [-2.0%, -1.4%] 5
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.7% [-2.0%, -1.4%] 5

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 30, 2023
@compiler-errors compiler-errors changed the title Int var can only be unified with int types in deep reject numeric vars can only be unified with numerical types in deep reject Mar 30, 2023
@compiler-errors compiler-errors marked this pull request as ready for review March 30, 2023 06:42
@compiler-errors
Copy link
Member Author

r? compiler

@compiler-errors
Copy link
Member Author

lcnr already has a lot of my prs assigned to them, let's give them a break 😂

r? compiler

@rustbot rustbot assigned wesleywiser and unassigned lcnr Mar 30, 2023
@lcnr
Copy link
Contributor

lcnr commented Mar 30, 2023

considering that i've already gotten pinged 😁

r? @lcnr

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 30, 2023

📌 Commit 1d7192d has been approved by lcnr

It is now in the queue for this repository.

@rustbot rustbot assigned lcnr and unassigned wesleywiser Mar 30, 2023
@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 30, 2023
@bors
Copy link
Collaborator

bors commented Mar 30, 2023

⌛ Testing commit 1d7192d with merge a10d4efe4e40b4a50379cf156c7accd44526662c...

@bors
Copy link
Collaborator

bors commented Mar 30, 2023

💔 Test failed - checks-actions

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

lcnr commented Mar 30, 2023

spurious?

@bors retry

@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 30, 2023
@rust-log-analyzer

This comment was marked as outdated.

@bors
Copy link
Collaborator

bors commented Mar 31, 2023

⌛ Testing commit 1d7192d with merge 276029d...

@bors
Copy link
Collaborator

bors commented Mar 31, 2023

☀️ Test successful - checks-actions
Approved by: lcnr
Pushing 276029d to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 31, 2023
@bors bors merged commit 276029d into rust-lang:master Mar 31, 2023
@rustbot rustbot added this to the 1.70.0 milestone Mar 31, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (276029d): 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.6% [0.6%, 0.6%] 3
Regressions ❌
(secondary)
0.4% [0.3%, 0.5%] 8
Improvements ✅
(primary)
-0.6% [-1.8%, -0.2%] 44
Improvements ✅
(secondary)
-0.8% [-1.5%, -0.2%] 3
All ❌✅ (primary) -0.6% [-1.8%, 0.6%] 47

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% [2.6%, 2.6%] 1
Regressions ❌
(secondary)
2.2% [2.2%, 2.2%] 1
Improvements ✅
(primary)
-3.3% [-3.7%, -2.9%] 2
Improvements ✅
(secondary)
-2.5% [-2.8%, -2.1%] 2
All ❌✅ (primary) -1.3% [-3.7%, 2.6%] 3

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)
-1.7% [-2.6%, -1.2%] 9
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.7% [-2.6%, -1.2%] 9

@rustbot rustbot added the perf-regression Performance regression. label Mar 31, 2023
@nnethercote
Copy link
Contributor

Improvements greatly outweigh regressions.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Mar 31, 2023
@compiler-errors compiler-errors deleted the deep-reject-less-permissive-num-var branch August 11, 2023 19:58
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. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants