Skip to content

Conversation

@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Nov 5, 2025

Reverts #3712 because it contained some unexpected incompatible changes.

@teor2345 teor2345 self-assigned this Nov 5, 2025
@teor2345 teor2345 added bug Something isn't working farmer Farming library/app core Related to core protocol, may affect fundamentals labels Nov 5, 2025
@teor2345 teor2345 marked this pull request as ready for review November 5, 2025 23:56
@immunefi-magnus
Copy link

🛡️ Immunefi PR Reviews

We noticed that your project isn't set up for automatic code reviews. If you'd like this PR reviewed by the Immunefi team, you can request it manually using the link below:

🔗 Send this PR in for review

Once submitted, we'll take care of assigning a reviewer and follow up here.

@teor2345
Copy link
Contributor Author

teor2345 commented Nov 5, 2025

I talked to Jeremy about this, we're thinking of doing a revert to get the stack overflow fix out.
(Unless someone can fix the breaking change with a small amount of effort.)

@vedhavyas what do you think?

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Comment @cursor review or bugbot run to trigger another review on this PR

});

let (sector, plotted_sector, table_generator) = plotting_result_receiver.await.unwrap();
let (sector, plotted_sector, mut table_generator) = plotting_result_receiver.await.unwrap();
Copy link

Choose a reason for hiding this comment

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

Bug: Mutable borrow break after trait change

The variable table_generator was declared as mutable on line 153 (let (sector, plotted_sector, mut table_generator) = plotting_result_receiver.await.unwrap();), but the trait TableGenerator::generate() now requires a mutable reference after the revert (changed from &self to &mut self in the trait definition). However, the code on line 189 calls table_generator.generate_parallel(seed) which also requires &mut self. Since table_generator is captured by the closure on line 189 and used multiple times, this will cause compilation errors due to multiple mutable borrows. The generate_parallel method signature was changed from taking &self to &mut self, which breaks the closure's ability to call it multiple times.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hallucination, there are no compilation errors.

@vedhavyas
Copy link
Contributor

Yeah, we can revert and pick it up later

@vedhavyas vedhavyas added this pull request to the merge queue Nov 6, 2025
Merged via the queue into main with commit 182f4bc Nov 6, 2025
17 checks passed
@vedhavyas vedhavyas deleted the revert-3712-abundance-pos-backport branch November 6, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Related to core protocol, may affect fundamentals farmer Farming library/app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants