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/back | |
| 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/back')
| -rw-r--r-- | src/rustc/back/link.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/back/link.rs b/src/rustc/back/link.rs index fb3d749673c..c8f5871333f 100644 --- a/src/rustc/back/link.rs +++ b/src/rustc/back/link.rs @@ -607,7 +607,7 @@ fn mangle_internal_name_by_path(ccx: @crate_ctxt, path: path) -> ~str { } fn mangle_internal_name_by_seq(ccx: @crate_ctxt, flav: ~str) -> ~str { - return fmt!("%s_%u", flav, ccx.names(flav)); + return fmt!("%s_%u", flav, ccx.names(flav).repr); } // If the user wants an exe generated we need to invoke |
