Rebase over LazyConst changes
This commit is contained in:
parent
f93ad414ab
commit
9bc58118fc
1 changed files with 1 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue