We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a27fb55 commit ee89c31Copy full SHA for ee89c31
src/libsyntax_pos/symbol.rs
@@ -348,6 +348,10 @@ fn with_interner<T, F: FnOnce(&mut Interner) -> T>(f: F) -> T {
348
/// interner lives for the life of the thread, this can be safely treated as an
349
/// immortal string, as long as it never crosses between threads.
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
+///
355
/// FIXME(pcwalton): You must be careful about what you do in the destructors
356
/// of objects stored in TLS, because they may run after the interner is
357
/// destroyed. In particular, they must not access string contents. This can
0 commit comments