Skip to content

recursive use of an object detected which would lead to unsafe aliasing in rust #3660

Answered by sezna
RedstoneWizard08 asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried eliminating the &mut self, instead rewriting it such that it returns a new instance of Task?

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@sezna
Comment options

Answer selected by RedstoneWizard08
@RedstoneWizard08
Comment options

@RedstoneWizard08
Comment options

@RedstoneWizard08
Comment options

@AngeloD2022
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #3658 on October 17, 2023 09:30.