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 {
348
348
/// interner lives for the life of the thread, this can be safely treated as an
349
349
/// immortal string, as long as it never crosses between threads.
350
350
///
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
+ ///
351
355
/// FIXME(pcwalton): You must be careful about what you do in the destructors
352
356
/// of objects stored in TLS, because they may run after the interner is
353
357
/// destroyed. In particular, they must not access string contents. This can
You can’t perform that action at this time.
0 commit comments