diff options
| author | varkor <github@varkor.com> | 2019-03-18 19:46:59 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-03-18 19:46:59 +0000 |
| commit | 9bc58118fc80e01eab53c72cfd8658b58d21c593 (patch) | |
| tree | db3775e23a8d7b584a0cf8616a54bf1f5b05a9ca | |
| parent | f93ad414ab1b78bb219df84b6a0a5e367dc81a66 (diff) | |
| download | rust-9bc58118fc80e01eab53c72cfd8658b58d21c593.tar.gz rust-9bc58118fc80e01eab53c72cfd8658b58d21c593.zip | |
Rebase over LazyConst changes
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 51f1ad1a376..5adce4a4170 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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 { |
