Skip to content

Don't delay a bug if we suggest adding a semicolon to the RHS of an assign operator #123736

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
merged 1 commit into from
Apr 12, 2024

Conversation

compiler-errors
Copy link
Member

It only makes sense to delay a bug based on the assumption that "[we] defer to the later error produced by check_lhs_assignable" if the expression we're erroring actually is an LHS; otherwise, we should still report the error since it's both useful and required.

Fixes #123722

@rustbot
Copy link
Collaborator

rustbot commented Apr 10, 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 Apr 10, 2024
@compiler-errors
Copy link
Member Author

r? @estebank since you touched this in 4b7aaca

@rustbot rustbot assigned estebank and unassigned wesleywiser Apr 11, 2024
@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 12, 2024

📌 Commit 889ca7e has been approved by estebank

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 Apr 12, 2024
@bors
Copy link
Collaborator

bors commented Apr 12, 2024

⌛ Testing commit 889ca7e with merge ab71ee7...

@bors
Copy link
Collaborator

bors commented Apr 12, 2024

☀️ Test successful - checks-actions
Approved by: estebank
Pushing ab71ee7 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 12, 2024
@bors bors merged commit ab71ee7 into rust-lang:master Apr 12, 2024
12 checks passed
@rustbot rustbot added this to the 1.79.0 milestone Apr 12, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ab71ee7): 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)
4.3% [4.3%, 4.3%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.0% [-3.0%, -3.0%] 1
All ❌✅ (primary) 4.3% [4.3%, 4.3%] 1

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)
-3.4% [-4.7%, -2.5%] 13
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -3.4% [-4.7%, -2.5%] 13

Binary size

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

Bootstrap: 676.794s -> 676.395s (-0.06%)
Artifact size: 316.09 MiB -> 316.00 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.

Triggering 'this path really should be doomed...' error
6 participants