diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-09-19 18:50:24 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-26 16:20:24 -0700 |
| commit | b96af7315951dcc69567c2f3432a46ff71ecddf3 (patch) | |
| tree | 0f334a23fe484cb40416ba801dda37b6fe80b239 /src/rustdoc | |
| parent | c0b9986c8f11c85c74ee0ba64dccf4495027a645 (diff) | |
| download | rust-b96af7315951dcc69567c2f3432a46ff71ecddf3.tar.gz rust-b96af7315951dcc69567c2f3432a46ff71ecddf3.zip | |
turn ast::ident into a struct
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
Diffstat (limited to 'src/rustdoc')
| -rw-r--r-- | src/rustdoc/extract.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustdoc/extract.rs b/src/rustdoc/extract.rs index b8a13b712e5..448e699fc8d 100644 --- a/src/rustdoc/extract.rs +++ b/src/rustdoc/extract.rs @@ -21,7 +21,7 @@ fn to_str(id: ast::ident) -> ~str { return *(*intr.get()).get(id); } -fn interner() -> syntax::parse::token::ident_interner { +fn interner() -> @syntax::parse::token::ident_interner { return *(unsafe{ local_data_get(interner_key!()) }).get(); } |
