]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/promote_consts.rs
improve naming
[rust.git] / src / librustc_mir / transform / promote_consts.rs
index 292ff17f4c598e71a52e97fe48a98d0dd436d027..59a8415ef96f04d14cbb34a1ff0cba5699c02c9f 100644 (file)
@@ -936,7 +936,7 @@ fn promote_temp(&mut self, temp: Local) -> Local {
 
     fn promote_candidate(
         mut self,
-        def: ty::WithOptParam<DefId>,
+        def: ty::WithOptConstParam<DefId>,
         candidate: Candidate,
         next_promoted_id: usize,
     ) -> Option<Body<'tcx>> {
@@ -1099,7 +1099,7 @@ fn visit_local(&mut self, local: &mut Local, _: PlaceContext, _: Location) {
 }
 
 pub fn promote_candidates<'tcx>(
-    def: ty::WithOptParam<DefId>,
+    def: ty::WithOptConstParam<DefId>,
     body: &mut Body<'tcx>,
     tcx: TyCtxt<'tcx>,
     mut temps: IndexVec<Local, TempState>,