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/rustc/driver | |
| 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/rustc/driver')
| -rw-r--r-- | src/rustc/driver/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/driver/session.rs b/src/rustc/driver/session.rs index 335e1004078..c6c0ff2826a 100644 --- a/src/rustc/driver/session.rs +++ b/src/rustc/driver/session.rs @@ -243,7 +243,7 @@ impl session { fn ident_of(st: ~str) -> ast::ident { self.parse_sess.interner.intern(@st) } - fn intr() -> syntax::parse::token::ident_interner { + fn intr() -> @syntax::parse::token::ident_interner { self.parse_sess.interner } } |
