rustup
This commit is contained in:
parent
ac71d6f345
commit
d4da7c46dd
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ use rustc::ty::layout::{self, Layout, Size};
|
||||||
use rustc::ty::subst::{self, Subst, Substs};
|
use rustc::ty::subst::{self, Subst, Substs};
|
||||||
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
|
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
|
||||||
use rustc_data_structures::indexed_vec::Idx;
|
use rustc_data_structures::indexed_vec::Idx;
|
||||||
use rustc_data_structures::fx::FxHashSet;
|
|
||||||
use syntax::codemap::{self, DUMMY_SP};
|
use syntax::codemap::{self, DUMMY_SP};
|
||||||
|
|
||||||
use error::{EvalError, EvalResult};
|
use error::{EvalError, EvalResult};
|
||||||
|
@ -1588,7 +1587,7 @@ pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: &ty::
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_inhabited<'a, 'tcx: 'a>(tcx: TyCtxt<'a, 'tcx, 'tcx>, ty: Ty<'tcx>) -> bool {
|
pub fn is_inhabited<'a, 'tcx: 'a>(tcx: TyCtxt<'a, 'tcx, 'tcx>, ty: Ty<'tcx>) -> bool {
|
||||||
ty.uninhabited_from(&mut FxHashSet::default(), tcx).is_empty()
|
ty.uninhabited_from(&mut HashMap::default(), tcx).is_empty()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait IntoValTyPair<'tcx> {
|
pub trait IntoValTyPair<'tcx> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue