about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-04-03 09:41:40 -0700
committerJohn Clements <clements@racket-lang.org>2013-04-16 10:06:05 -0700
commit313a5ab94622532c4de316ed6d82b0788be31266 (patch)
tree9d734cdaee97f68d7d6029a954897ef3c2526b37 /src/libsyntax/parse
parent7cacd87efd34f8b8c3c0db5e5b2192ddd32a6ec5 (diff)
downloadrust-313a5ab94622532c4de316ed6d82b0788be31266.tar.gz
rust-313a5ab94622532c4de316ed6d82b0788be31266.zip
move interner_key macro
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 54b2ad85147..706821e1985 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -374,16 +374,6 @@ pub impl ident_interner {
     }
 }
 
-/* Key for thread-local data for sneaking interner information to the
- * encoder/decoder. It sounds like a hack because it is one.
- * Bonus ultra-hack: functions as keys don't work across crates,
- * so we have to use a unique number. See taskgroup_key! in task.rs
- * for another case of this. */
-macro_rules! interner_key (
-    () => (cast::transmute::<(uint, uint), &fn(+v: @@token::ident_interner)>(
-        (-3 as uint, 0u)))
-)
-
 pub fn mk_ident_interner() -> @ident_interner {
     unsafe {
         match task::local_data::local_data_get(interner_key!()) {