Skip to content

Commit

Permalink
Rebase over LazyConst changes
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Mar 18, 2019
1 parent f93ad41 commit 9bc5811
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/librustdoc/clean/mod.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9bc5811

Please sign in to comment.