mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
rustup
This commit is contained in:
+1
-2
@@ -11,7 +11,6 @@
|
||||
use rustc::ty::subst::{self, Subst, Substs};
|
||||
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
|
||||
use rustc_data_structures::indexed_vec::Idx;
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use syntax::codemap::{self, DUMMY_SP};
|
||||
|
||||
use error::{EvalError, EvalResult};
|
||||
@@ -1593,7 +1592,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 {
|
||||
ty.uninhabited_from(&mut FxHashSet::default(), tcx).is_empty()
|
||||
ty.uninhabited_from(&mut HashMap::default(), tcx).is_empty()
|
||||
}
|
||||
|
||||
pub trait IntoValTyPair<'tcx> {
|
||||
|
||||
Reference in New Issue
Block a user