Skip to content

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Nov 22, 2024

As far as I can tell, the HIR const checker was implemented in #66170 because we were not able to issue useful const error messages in the MIR const checker.

This seems to have changed in the last 5 years, probably due to work like #90532. I've tweaked the diagnostics slightly and think the error messages have gotten better in fact.

Thus I think the HIR const checker has reached the end of its usefulness, and we can retire it.

cc @RalfJung

@rustbot
Copy link
Collaborator

rustbot commented Nov 22, 2024

r? @wesleywiser

rustbot has assigned @wesleywiser.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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 22, 2024
@rustbot
Copy link
Collaborator

rustbot commented Nov 22, 2024

Some changes occurred to the CTFE machinery

cc @rust-lang/wg-const-eval

@RalfJung
Copy link
Member

I didn't even know we had another const checker...
Cc @rust-lang/wg-const-eval

@compiler-errors
Copy link
Member Author

@wesleywiser, do you have a chance to review this? Otherwise, should I re-roll? (Unless @RalfJung would like to r+ this instead 😸)

Copy link
Member

@wesleywiser wesleywiser left a comment

Choose a reason for hiding this comment

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

This is a really nice cleanup! 🏅

I agree, on average it feels to me like diagnostics are slightly better than before even with the couple notable regressions.

@wesleywiser
Copy link
Member

@bors r+ rollup=never

in case removing this pass changes compiler perf any

@bors
Copy link
Collaborator

bors commented Dec 3, 2024

📌 Commit 01ff36a has been approved by wesleywiser

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 Dec 3, 2024
@bors
Copy link
Collaborator

bors commented Dec 3, 2024

⌛ Testing commit 01ff36a with merge efdd9e8...

@bors
Copy link
Collaborator

bors commented Dec 3, 2024

☀️ Test successful - checks-actions
Approved by: wesleywiser
Pushing efdd9e8 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 3, 2024
@bors bors merged commit efdd9e8 into rust-lang:master Dec 3, 2024
7 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 3, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (efdd9e8): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.2%, 0.2%] 1
Improvements ✅
(primary)
-0.2% [-0.3%, -0.1%] 12
Improvements ✅
(secondary)
-0.2% [-0.4%, -0.1%] 28
All ❌✅ (primary) -0.2% [-0.3%, -0.1%] 12

Max RSS (memory usage)

Results (primary 1.9%, secondary 1.9%)

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)
1.9% [1.9%, 1.9%] 1
Regressions ❌
(secondary)
3.3% [2.5%, 4.4%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) 1.9% [1.9%, 1.9%] 1

Cycles

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

Binary size

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

Bootstrap: 767.847s -> 767.333s (-0.07%)
Artifact size: 332.18 MiB -> 332.08 MiB (-0.03%)

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.

6 participants