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

Only instantiate binder during dyn's built-in trait candidate probe once #117610

Merged
merged 2 commits into from Nov 7, 2023

Conversation

compiler-errors
Copy link
Member

See UI test for demonstration of the issue.

This was "caused" by #117131, but only because we're using the normalize_param_env (which has been augmented with a projection clause used to normalize GATs) which features non-lifetime bound vars in it.

Fixes #117602 technically, though that's also fixed by #117542.

r? types

@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 Nov 5, 2023
Copy link
Member

@aliemjay aliemjay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with the nit

@compiler-errors
Copy link
Member Author

Fixed this the right way by not instantiating the binder twice, but only once during the probe.

@aliemjay
Copy link
Member

aliemjay commented Nov 7, 2023

r? aliemjay
@bors r+ rollup=maybe (low chance of a perf impact)

@bors
Copy link
Contributor

bors commented Nov 7, 2023

📌 Commit 171d558 has been approved by aliemjay

It is now in the queue for this repository.

@rustbot rustbot assigned aliemjay and unassigned spastorino Nov 7, 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 Nov 7, 2023
@compiler-errors compiler-errors changed the title Only check predicates for late-bound non-lifetime vars in object candidate assembly Only instantiate binder during dyn's built-in trait candidate probe once Nov 7, 2023
@bors
Copy link
Contributor

bors commented Nov 7, 2023

⌛ Testing commit 171d558 with merge 114f1f6...

@bors
Copy link
Contributor

bors commented Nov 7, 2023

☀️ Test successful - checks-actions
Approved by: aliemjay
Pushing 114f1f6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 7, 2023
@bors bors merged commit 114f1f6 into rust-lang:master Nov 7, 2023
12 checks passed
@rustbot rustbot added this to the 1.75.0 milestone Nov 7, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (114f1f6): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

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.8% [3.6%, 3.9%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

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

Binary size

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.0% [-0.0%, -0.0%] 8
Improvements ✅
(secondary)
-0.0% [-0.0%, -0.0%] 13
All ❌✅ (primary) -0.0% [-0.0%, -0.0%] 8

Bootstrap: 662.279s -> 663.784s (0.23%)
Artifact size: 308.97 MiB -> 308.95 MiB (-0.01%)

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. 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.

Nightly 65e297d1e 2023-11-03 fails to infer auto traits
7 participants