diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-11-24 14:37:46 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-11-28 20:59:57 +0300 |
| commit | 9be526e8ebfd318ecc5c6d5a6c40886dffb1be95 (patch) | |
| tree | 4112dff7b4997c7eb5480c31f9c027337a1ce10b /src/libsyntax | |
| parent | 4c8105e8b743ce1742a91a07dca3b5a23f72178b (diff) | |
| download | rust-9be526e8ebfd318ecc5c6d5a6c40886dffb1be95.tar.gz rust-9be526e8ebfd318ecc5c6d5a6c40886dffb1be95.zip | |
rustc_metadata: Move `has_global_allocator` from session to cstore
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/expand/allocator.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/expand/allocator.rs b/src/libsyntax/expand/allocator.rs index 20487b9af03..cc3eeed04a6 100644 --- a/src/libsyntax/expand/allocator.rs +++ b/src/libsyntax/expand/allocator.rs @@ -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), } } } |
