Rust in the 6.2 kernel
Rust in the 6.2 kernel
Posted Dec 12, 2022 21:04 UTC (Mon) by oconnor663 (guest, #119484)In reply to: Rust in the 6.2 kernel by farnz
Parent article: Rust in the 6.2 kernel
You (farnz) probably already know this but I think it's worth adding: Not only deallocated, but also reallocated. Calling .push_back() or .append() on the original string also potentially invalidates a string_view.
It could be totally fair to describe these as niche issues that don't affect most callers of string_view. But I don't agree with calling someone a "liar" because you (ncm) think it's niche. Or if these issues are new to you, great! None of us is ever done learning.
