File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,10 @@ fn with_interner<T, F: FnOnce(&mut Interner) -> T>(f: F) -> T {
348348/// interner lives for the life of the thread, this can be safely treated as an
349349/// immortal string, as long as it never crosses between threads.
350350///
351+ /// CAUTION: InternedStrings are *not* compared and hashed lexicographically!
352+ /// Instead their pointer values are compared/hashed, so cast to &str
353+ /// if you need things to be stable across process boundaries.
354+ ///
351355/// FIXME(pcwalton): You must be careful about what you do in the destructors
352356/// of objects stored in TLS, because they may run after the interner is
353357/// destroyed. In particular, they must not access string contents. This can
You can’t perform that action at this time.
0 commit comments