-
Notifications
You must be signed in to change notification settings - Fork 48
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
Module levels not actually getting sorted outside of #[cfg(test)] #90
Comments
Can you describe the unexpected behaviour you're seeing? I can see that the code is doing something useless, but I can't work out if sorting |
Honestly, I was pursuing an issue that turned out to be unrelated to this finding (I used But theoretically, looking here, I would say it's possible to have something like:
And, without sorting, this would lead to all |
Thanks - I ended up with a similar looking test debugging this so glad I understood correctly. It was a bit confusing to work out since there was some code that sorted the Vec in |
Released in v4.3.3. Thanks! |
Thanks for the quick fix! |
Hi,
It seems that this commit 8cec833 introduced a bug - only the cloned Vec is now sorted (and never used later), leaving the original
self.module_levels
pristine.The text was updated successfully, but these errors were encountered: