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

use check_region_obligations_and_report_errors to avoid ICEs #99796

Merged
merged 2 commits into from
Jul 30, 2022

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Jul 27, 2022

If we don't call process_registered_region_obligations before resolve_regions_and_report_errors then we'll ICE if we have any region obligations, and check_region_obligations_and_report_errors just does both of these for us in a nice convenient function.

Fixes #53475

r? types

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 27, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 27, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Jul 27, 2022

Are there any callers to resolve_regions_and_report_errors left? If so, maybe document this issue on the function itself to prevent additional mis-uses

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 27, 2022
@bors
Copy link
Contributor

bors commented Jul 27, 2022

⌛ Trying commit 1694ea1 with merge 2ef4c8b9ce5c90a2ff5e91285b32cee773416e3b...

@bors
Copy link
Contributor

bors commented Jul 27, 2022

☀️ Try build successful - checks-actions
Build commit: 2ef4c8b9ce5c90a2ff5e91285b32cee773416e3b (2ef4c8b9ce5c90a2ff5e91285b32cee773416e3b)

@rust-timer
Copy link
Collaborator

Queued 2ef4c8b9ce5c90a2ff5e91285b32cee773416e3b with parent ff693dc, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (2ef4c8b9ce5c90a2ff5e91285b32cee773416e3b): comparison url.

Instruction count

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

Max RSS (memory usage)

Results
  • Primary benchmarks: 😿 relevant regressions found
  • Secondary benchmarks: 🎉 relevant improvement found
mean1 max count2
Regressions 😿
(primary)
2.1% 3.6% 2
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
-2.8% -2.8% 1
All 😿🎉 (primary) 2.1% 3.6% 2

Cycles

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

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

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-review -S-waiting-on-perf -perf-regression

Footnotes

  1. the arithmetic mean of the percent change

  2. number of relevant changes

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 27, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Jul 27, 2022

Are there any callers to resolve_regions_and_report_errors left? If so, maybe document this issue on the function itself to prevent additional mis-uses

r=me with this resolved

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 27, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Jul 29, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jul 29, 2022

📌 Commit 16f4980 has been approved by oli-obk

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 29, 2022
@bors
Copy link
Contributor

bors commented Jul 30, 2022

⌛ Testing commit 16f4980 with merge 110777b...

@bors
Copy link
Contributor

bors commented Jul 30, 2022

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 110777b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 30, 2022
@bors bors merged commit 110777b into rust-lang:master Jul 30, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 30, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (110777b): comparison url.

Instruction count

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 😿 relevant regression found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
1.1% 1.1% 1
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) N/A N/A 0

Max RSS (memory usage)

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
2.0% 3.1% 2
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
-2.3% -2.3% 1
Improvements 🎉
(secondary)
-3.1% -3.8% 2
All 😿🎉 (primary) 0.6% 3.1% 3

Cycles

Results
  • Primary benchmarks: 😿 relevant regressions found
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
2.5% 2.7% 2
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
-4.7% -5.5% 5
All 😿🎉 (primary) 2.5% 2.7% 2

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@compiler-errors compiler-errors deleted the issue-53475 branch August 11, 2023 20:05
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.

internal compiler error: region_obligations not empty with CoerceUnsized
6 participants