diff options
| author | John Clements <clements@racket-lang.org> | 2013-04-03 09:41:40 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-04-16 10:06:05 -0700 |
| commit | 313a5ab94622532c4de316ed6d82b0788be31266 (patch) | |
| tree | 9d734cdaee97f68d7d6029a954897ef3c2526b37 /src/libsyntax/parse | |
| parent | 7cacd87efd34f8b8c3c0db5e5b2192ddd32a6ec5 (diff) | |
| download | rust-313a5ab94622532c4de316ed6d82b0788be31266.tar.gz rust-313a5ab94622532c4de316ed6d82b0788be31266.zip | |
move interner_key macro
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 10 |
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!()) { |
