]> git.proxmox.com Git - rustc.git/blobdiff - src/libsyntax/expand/allocator.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / libsyntax / expand / allocator.rs
index 20487b9af03a6525bce1f32b80f5e079addb3f66..cc3eeed04a603145dfab479c458cadf3402f4261 100644 (file)
@@ -5,16 +5,14 @@ use syntax_pos::Span;
 #[derive(Clone, Copy)]
 pub enum AllocatorKind {
     Global,
-    DefaultLib,
-    DefaultExe,
+    Default,
 }
 
 impl AllocatorKind {
     pub fn fn_name(&self, base: &str) -> String {
         match *self {
             AllocatorKind::Global => format!("__rg_{}", base),
-            AllocatorKind::DefaultLib => format!("__rdl_{}", base),
-            AllocatorKind::DefaultExe => format!("__rde_{}", base),
+            AllocatorKind::Default => format!("__rdl_{}", base),
         }
     }
 }