Skip to content

Commit

Permalink
Remove unused type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Oct 31, 2016
1 parent 4497196 commit 07c8a25
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 23 deletions.
6 changes: 2 additions & 4 deletions src/librustc_borrowck/borrowck/mir/abs_domain.rs
Expand Up @@ -21,13 +21,11 @@
//! `a[x]` would still overlap them both. But that is not this
//! representation does today.)

use rustc::mir::{Lvalue, LvalueElem};
use rustc::mir::{Operand, Projection, ProjectionElem};
use rustc::mir::LvalueElem;
use rustc::mir::{Operand, ProjectionElem};

#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
pub struct AbstractOperand;
pub type AbstractProjection<'tcx> =
Projection<'tcx, Lvalue<'tcx>, AbstractOperand>;
pub type AbstractElem<'tcx> =
ProjectionElem<'tcx, AbstractOperand>;

Expand Down
2 changes: 0 additions & 2 deletions src/librustc_borrowck/borrowck/mod.rs
Expand Up @@ -300,8 +300,6 @@ struct BorrowStats {
guaranteed_paths: usize
}

pub type BckResult<'tcx, T> = Result<T, BckError<'tcx>>;

///////////////////////////////////////////////////////////////////////////
// Loans and loan paths

Expand Down
2 changes: 0 additions & 2 deletions src/librustc_incremental/persist/load.rs
Expand Up @@ -32,8 +32,6 @@ use super::file_format;

pub type DirtyNodes = FnvHashSet<DepNode<DefPathIndex>>;

type CleanEdges = Vec<(DepNode<DefId>, DepNode<DefId>)>;

/// If we are in incremental mode, and a previous dep-graph exists,
/// then load up those nodes/edges that are still valid into the
/// dep-graph for this session. (This is assumed to be running very
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_resolve/macros.rs
Expand Up @@ -12,7 +12,6 @@ use {Module, Resolver};
use build_reduced_graph::BuildReducedGraphVisitor;
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefIndex};
use rustc::hir::map::{self, DefCollector};
use rustc::util::nodemap::FnvHashMap;
use std::cell::Cell;
use std::rc::Rc;
use syntax::ast;
Expand Down Expand Up @@ -80,8 +79,6 @@ pub struct LegacyBinding<'a> {
span: Span,
}

pub type LegacyImports = FnvHashMap<ast::Name, (Rc<SyntaxExtension>, Span)>;

impl<'a> base::Resolver for Resolver<'a> {
fn next_node_id(&mut self) -> ast::NodeId {
self.session.next_node_id()
Expand Down
6 changes: 0 additions & 6 deletions src/librustc_trans/adt.rs
Expand Up @@ -48,7 +48,6 @@ use std;
use llvm::{ValueRef, True, IntEQ, IntNE};
use rustc::ty::layout;
use rustc::ty::{self, Ty, AdtKind};
use syntax::attr;
use build::*;
use common::*;
use debuginfo::DebugLoc;
Expand All @@ -66,8 +65,6 @@ pub enum BranchKind {
Single
}

type Hint = attr::ReprAttr;

#[derive(Copy, Clone)]
pub struct MaybeSizedValue {
pub value: ValueRef,
Expand Down Expand Up @@ -119,9 +116,6 @@ fn compute_fields<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>, t: Ty<'tcx>,
}
}

/// This represents the (GEP) indices to follow to get to the discriminant field
pub type DiscrField = Vec<usize>;

/// LLVM-level types are a little complicated.
///
/// C-like enums need to be actual ints, not wrapped in a struct,
Expand Down
2 changes: 0 additions & 2 deletions src/librustc_typeck/astconv.rs
Expand Up @@ -171,8 +171,6 @@ struct ConvertedBinding<'tcx> {
span: Span,
}

type TraitAndProjections<'tcx> = (ty::PolyTraitRef<'tcx>, Vec<ty::PolyProjectionPredicate<'tcx>>);

/// Dummy type used for the `Self` of a `TraitRef` created for converting
/// a trait object, and which gets removed in `ExistentialTraitRef`.
/// This type must not appear anywhere in other converted types.
Expand Down
4 changes: 0 additions & 4 deletions src/libstd/collections/hash/table.rs
Expand Up @@ -113,10 +113,6 @@ pub struct FullBucket<K, V, M> {
table: M,
}

pub type EmptyBucketImm<'table, K, V> = EmptyBucket<K, V, &'table RawTable<K, V>>;
pub type FullBucketImm<'table, K, V> = FullBucket<K, V, &'table RawTable<K, V>>;

pub type EmptyBucketMut<'table, K, V> = EmptyBucket<K, V, &'table mut RawTable<K, V>>;
pub type FullBucketMut<'table, K, V> = FullBucket<K, V, &'table mut RawTable<K, V>>;

pub enum BucketState<K, V, M> {
Expand Down

0 comments on commit 07c8a25

Please sign in to comment.