Skip to content

Commit ab657e3

Browse files
committed
Fix typo
1 parent 67b7a78 commit ab657e3

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/transform

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ fn optimized_mir(tcx: TyCtxt<'_>, def_id: DefId) -> &BodyCache<'_> {
338338
tcx.arena.alloc(body_cache)
339339
}
340340

341-
fn promoted_mir(tcx: TyCtxt, def_id: DefId) -> &IndexVec<Promoted, BodyCache> {
341+
fn promoted_mir(tcx: TyCtxt<'_>, def_id: DefId) -> &IndexVec<Promoted, BodyCache<'_>> {
342342
if tcx.is_constructor(def_id) {
343343
return tcx.intern_promoted(IndexVec::new());
344344
}

0 commit comments

Comments
 (0)