https://github.com/tantivy-search/tantivy/blob/0dad02791c74e572ec005abb1f75e3601bd25db5/src/common/mod.rs#L31-L41
This could lead to a number of problems if not used carefully but most rust developers would not expect this behaviour from a "safe" function.
I really think this should be replaced with something safer, or at least marked as unsafe