|
|
|
|
|
by giovannibajo1
2307 days ago
|
|
Is there any explanation of this? Specifically i would like to understand how a single mutable reference is required for correctness in a single thread scenario. I’ve googled everywhere but I can’t find a single source of information that completely explains this, possibly showing realistic source code and elaborating the way it could generate memory errors or be miscompiled in case of multiple mutable references. |
|
The TL;DR is: iterator invalidation can happen even without threads.