@@ -30,7 +30,7 @@ use middle::exported_symbols::{SymbolExportLevel, ExportedSymbol};
3030use mir:: interpret:: ConstEvalResult ;
3131use mir:: mono:: { CodegenUnit , Stats } ;
3232use mir;
33- use mir:: interpret:: { GlobalId , Allocation } ;
33+ use mir:: interpret:: GlobalId ;
3434use session:: { CompileResult , CrateDisambiguator } ;
3535use session:: config:: OutputFilenames ;
3636use traits:: { self , Vtable } ;
@@ -286,11 +286,6 @@ define_queries! { <'tcx>
286286 /// other items (such as enum variant explicit discriminants).
287287 [ ] fn const_eval: const_eval_dep_node( ty:: ParamEnvAnd <' tcx, GlobalId <' tcx>>)
288288 -> ConstEvalResult <' tcx>,
289-
290- /// Converts a constant value to a constant allocation
291- [ ] fn const_to_allocation: const_to_allocation(
292- & ' tcx ty:: Const <' tcx>
293- ) -> & ' tcx Allocation ,
294289 } ,
295290
296291 TypeChecking {
@@ -706,12 +701,6 @@ fn erase_regions_ty<'tcx>(ty: Ty<'tcx>) -> DepConstructor<'tcx> {
706701 DepConstructor :: EraseRegionsTy { ty }
707702}
708703
709- fn const_to_allocation < ' tcx > (
710- val : & ' tcx ty:: Const < ' tcx > ,
711- ) -> DepConstructor < ' tcx > {
712- DepConstructor :: ConstToAllocation { val }
713- }
714-
715704fn type_param_predicates < ' tcx > ( ( item_id, param_id) : ( DefId , DefId ) ) -> DepConstructor < ' tcx > {
716705 DepConstructor :: TypeParamPredicates {
717706 item_id,
0 commit comments