about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>2018-01-26 15:28:45 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-03-08 08:34:11 +0100
commitb38e8af5eb038d3afd4aebc0dd0f0b64b646aee0 (patch)
treee4deba6812b3cd11d87976b851f2064f20a1a587
parent0e2da01b91b991da398e4a7a4e4906fc2b31a704 (diff)
downloadrust-b38e8af5eb038d3afd4aebc0dd0f0b64b646aee0.tar.gz
rust-b38e8af5eb038d3afd4aebc0dd0f0b64b646aee0.zip
Remove unused function
-rw-r--r--src/librustc_mir/const_eval/eval.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/librustc_mir/const_eval/eval.rs b/src/librustc_mir/const_eval/eval.rs
index 32f834daa4c..29c0cd499b3 100644
--- a/src/librustc_mir/const_eval/eval.rs
+++ b/src/librustc_mir/const_eval/eval.rs
@@ -18,19 +18,6 @@ use syntax::ast;
 
 use rustc_const_math::*;
 
-/// * `DefId` is the id of the constant.
-/// * `Substs` is the monomorphized substitutions for the expression.
-pub fn lookup_const_by_id<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
-                                    key: ty::ParamEnvAnd<'tcx, (DefId, &'tcx Substs<'tcx>)>)
-                                    -> Option<(DefId, &'tcx Substs<'tcx>)> {
-    ty::Instance::resolve(
-        tcx,
-        key.param_env,
-        key.value.0,
-        key.value.1,
-    ).map(|instance| (instance.def_id(), instance.substs))
-}
-
 pub fn lit_to_const<'a, 'tcx>(lit: &'tcx ast::LitKind,
                           tcx: TyCtxt<'a, 'tcx, 'tcx>,
                           ty: Ty<'tcx>,