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

Merge PatKind::Path into PatKind::Expr #134248

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Dec 13, 2024

Follow-up to #134228

We always had a duplication where Paths could be represented as PatKind::Path or PatKind::Lit(ExprKind::Path). We had to handle both everywhere, and still do after #134228, so I'm removing it now.

@rustbot
Copy link
Collaborator

rustbot commented Dec 13, 2024

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 13, 2024
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the patkind-path-removal branch from 7cee193 to eb60270 Compare December 13, 2024 09:20
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the patkind-path-removal branch from eb60270 to a29a302 Compare December 13, 2024 10:20
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the patkind-path-removal branch 2 times, most recently from 40adfed to 25dae36 Compare December 18, 2024 10:13
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 18, 2024
…ler-errors

Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang#134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Dec 19, 2024
…ler-errors

Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang#134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 19, 2024
Rollup merge of rust-lang#134474 - oli-obk:push-yomnkntvzlxw, r=compiler-errors

Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang#134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Dec 20, 2024
Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang/rust#134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
lnicola pushed a commit to lnicola/rust-analyzer that referenced this pull request Dec 23, 2024
Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang/rust#134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
@bors
Copy link
Contributor

bors commented Dec 26, 2024

☔ The latest upstream changes (presumably #134788) made this pull request unmergeable. Please resolve the merge conflicts.

@oli-obk oli-obk force-pushed the patkind-path-removal branch 2 times, most recently from 2f05ee6 to 1be4ad1 Compare January 7, 2025 10:07
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the patkind-path-removal branch from 1be4ad1 to 2269e1f Compare January 7, 2025 10:19
@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 7, 2025

@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 Jan 7, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 7, 2025
Merge `PatKind::Path` into `PatKind::Lit`

Follow-up to rust-lang#134228

We always had a duplication where `Path`s could be represented as `PatKind::Path` or `PatKind::Lit(ExprKind::Path)`. We had to handle both everywhere, and still do after rust-lang#134228, so I'm removing it now. subsequently we can also nuke `visit_pattern_type_pattern`
@bors
Copy link
Contributor

bors commented Jan 7, 2025

⌛ Trying commit 2269e1f with merge 801e8e4...

@rust-log-analyzer

This comment has been minimized.

@BoxyUwU BoxyUwU added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 28, 2025
@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 29, 2025

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 29, 2025
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the patkind-path-removal branch 2 times, most recently from 511bc00 to 25b82ba Compare January 29, 2025 10:12
@BoxyUwU
Copy link
Member

BoxyUwU commented Jan 29, 2025

r=me after arg rename

@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 Jan 29, 2025
@oli-obk oli-obk force-pushed the patkind-path-removal branch from 25b82ba to 559648a Compare January 29, 2025 15:45
@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 29, 2025

@bors r=BoxyUwU

@bors
Copy link
Contributor

bors commented Jan 29, 2025

📌 Commit 559648a has been approved by BoxyUwU

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 Jan 29, 2025
@bors
Copy link
Contributor

bors commented Jan 29, 2025

⌛ Testing commit 559648a with merge ae5de6c...

@bors
Copy link
Contributor

bors commented Jan 29, 2025

☀️ Test successful - checks-actions
Approved by: BoxyUwU
Pushing ae5de6c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 29, 2025
@bors bors merged commit ae5de6c into rust-lang:master Jan 29, 2025
7 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 29, 2025
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ae5de6c): comparison URL.

Overall result: ❌ regressions - please read the text below

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

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

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.3% [0.2%, 0.4%] 8
Regressions ❌
(secondary)
0.3% [0.1%, 0.5%] 9
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.3% [0.2%, 0.4%] 8

Max RSS (memory usage)

Results (primary 2.3%, secondary -3.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)
2.8% [2.1%, 5.4%] 6
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.9% [-0.9%, -0.9%] 1
Improvements ✅
(secondary)
-3.9% [-3.9%, -3.9%] 1
All ❌✅ (primary) 2.3% [-0.9%, 5.4%] 7

Cycles

Results (secondary -2.2%)

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

Binary size

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

Bootstrap: 776.896s -> 777.289s (0.05%)
Artifact size: 328.47 MiB -> 328.44 MiB (-0.01%)

@BoxyUwU
Copy link
Member

BoxyUwU commented Jan 30, 2025

perf regression expected and triaged in #134248 (comment).

@BoxyUwU BoxyUwU added the perf-regression-triaged The performance regression has been triaged. label Jan 30, 2025
@oli-obk oli-obk deleted the patkind-path-removal branch January 30, 2025 06:20
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.

7 participants