Rebase over LazyConst changes

This commit is contained in:
varkor 2019-03-18 19:46:59 +00:00
parent f93ad414ab
commit 9bc58118fc

View file

@ -17,7 +17,7 @@ use rustc::middle::resolve_lifetime as rl;
use rustc::middle::lang_items;
use rustc::middle::stability;
use rustc::mir::interpret::{GlobalId, ConstValue};
use rustc::hir::{self, GenericArg, HirVec};
use rustc::hir::{self, HirVec};
use rustc::hir::def::{self, Def, CtorKind};
use rustc::hir::def_id::{CrateNum, DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
use rustc::hir::map::DisambiguatedDefPathData;
@ -2931,16 +2931,6 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
}
}
impl<'tcx> Clean<Constant> for ty::LazyConst<'tcx> {
fn clean(&self, cx: &DocContext<'_>) -> Constant {
if let ty::LazyConst::Evaluated(ct) = self {
ct.clean(cx)
} else {
unimplemented!() // FIXME(const_generics)
}
}
}
impl<'tcx> Clean<Constant> for ty::Const<'tcx> {
fn clean(&self, cx: &DocContext<'_>) -> Constant {
Constant {