Skip to content

Commit 9bc5811

Browse files
committed
Rebase over LazyConst changes
1 parent f93ad41 commit 9bc5811

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/librustdoc/clean/mod.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc::middle::resolve_lifetime as rl;
1717
use rustc::middle::lang_items;
1818
use rustc::middle::stability;
1919
use rustc::mir::interpret::{GlobalId, ConstValue};
20-
use rustc::hir::{self, GenericArg, HirVec};
20+
use rustc::hir::{self, HirVec};
2121
use rustc::hir::def::{self, Def, CtorKind};
2222
use rustc::hir::def_id::{CrateNum, DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
2323
use rustc::hir::map::DisambiguatedDefPathData;
@@ -2931,16 +2931,6 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
29312931
}
29322932
}
29332933

2934-
impl<'tcx> Clean<Constant> for ty::LazyConst<'tcx> {
2935-
fn clean(&self, cx: &DocContext<'_>) -> Constant {
2936-
if let ty::LazyConst::Evaluated(ct) = self {
2937-
ct.clean(cx)
2938-
} else {
2939-
unimplemented!() // FIXME(const_generics)
2940-
}
2941-
}
2942-
}
2943-
29442934
impl<'tcx> Clean<Constant> for ty::Const<'tcx> {
29452935
fn clean(&self, cx: &DocContext<'_>) -> Constant {
29462936
Constant {

0 commit comments

Comments
 (0)