diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-06-25 12:41:24 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-11-19 02:14:28 +0200 |
| commit | 5b1fdaeb80b14bc0b7d7c172019b7cd792bb9abb (patch) | |
| tree | a7b4ccad6fb4f8b406d54c4b23df6b78355f6d5e /src/librustc_trans_utils | |
| parent | 260c41b4b808fd9995f23ce1eb7d820f49254c85 (diff) | |
rustc_trans: use more of the trans::mir and ty::layout APIs throughout.
Diffstat (limited to 'src/librustc_trans_utils')
| -rw-r--r-- | src/librustc_trans_utils/monomorphize.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/librustc_trans_utils/monomorphize.rs b/src/librustc_trans_utils/monomorphize.rs index ab61dacf010..eee5c1d9ef2 100644 --- a/src/librustc_trans_utils/monomorphize.rs +++ b/src/librustc_trans_utils/monomorphize.rs @@ -12,7 +12,7 @@ use rustc::hir::def_id::DefId; use rustc::middle::lang_items::DropInPlaceFnLangItem; use rustc::traits; use rustc::ty::adjustment::CustomCoerceUnsized; -use rustc::ty::subst::{Kind, Subst, Substs}; +use rustc::ty::subst::{Kind, Subst}; use rustc::ty::{self, Ty, TyCtxt}; pub use rustc::ty::Instance; @@ -125,12 +125,3 @@ pub fn custom_coerce_unsize_info<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, } } -/// Returns the normalized type of a struct field -pub fn field_ty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, - param_substs: &Substs<'tcx>, - f: &'tcx ty::FieldDef) - -> Ty<'tcx> -{ - tcx.fully_normalize_associated_types_in(&f.ty(tcx, param_substs)) -} - |
