diff options
| author | Steven Fackler <sfackler@gmail.com> | 2018-04-21 15:16:59 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2018-04-22 10:08:49 -0700 |
| commit | 5969712c3f2163b7ca6f809e0f5e31f73e8898bb (patch) | |
| tree | 9efd6c8101f8d5e0f8cb86452267c4509ae9c8e1 /src/librustc_allocator | |
| parent | 9e8f683476d5a9d72c6c1e9383a519cf0fb27494 (diff) | |
| download | rust-5969712c3f2163b7ca6f809e0f5e31f73e8898bb.tar.gz rust-5969712c3f2163b7ca6f809e0f5e31f73e8898bb.zip | |
Remove unused AllocatorTy::Bang
Diffstat (limited to 'src/librustc_allocator')
| -rw-r--r-- | src/librustc_allocator/expand.rs | 4 | ||||
| -rw-r--r-- | src/librustc_allocator/lib.rs | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs index ffd02108c27..9338d000c12 100644 --- a/src/librustc_allocator/expand.rs +++ b/src/librustc_allocator/expand.rs @@ -245,7 +245,7 @@ impl<'a> AllocFnFactory<'a> { self.cx.expr_ident(self.span, ident) } - AllocatorTy::ResultPtr | AllocatorTy::Bang | AllocatorTy::Unit => { + AllocatorTy::ResultPtr | AllocatorTy::Unit => { panic!("can't convert AllocatorTy to an argument") } } @@ -262,8 +262,6 @@ impl<'a> AllocFnFactory<'a> { (self.ptr_u8(), expr) } - AllocatorTy::Bang => (self.cx.ty(self.span, TyKind::Never), expr), - AllocatorTy::Unit => (self.cx.ty(self.span, TyKind::Tup(Vec::new())), expr), AllocatorTy::Layout | AllocatorTy::Usize | AllocatorTy::Ptr => { diff --git a/src/librustc_allocator/lib.rs b/src/librustc_allocator/lib.rs index f3103e21606..969086815de 100644 --- a/src/librustc_allocator/lib.rs +++ b/src/librustc_allocator/lib.rs @@ -47,7 +47,6 @@ pub struct AllocatorMethod { } pub enum AllocatorTy { - Bang, Layout, Ptr, ResultPtr, |
