about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Daniel Faria <Nashenas88@users.noreply.github.com>2019-10-28 19:32:56 -0400
committerPaul Daniel Faria <Nashenas88@users.noreply.github.com>2019-12-02 08:38:16 -0500
commitab657e3b6bc147f06ccf79b5a82f33107bfc668b (patch)
tree5cd8f2890291bbf7f1d30bc51fa4f30b5660ed0e
parent67b7a78231c84f9e864d7074f2fc8f092290873b (diff)
downloadrust-ab657e3b6bc147f06ccf79b5a82f33107bfc668b.tar.gz
rust-ab657e3b6bc147f06ccf79b5a82f33107bfc668b.zip
Fix typo
-rw-r--r--src/librustc_mir/transform/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/transform/mod.rs b/src/librustc_mir/transform/mod.rs
index 3b2cea53d1c..1265a1a8386 100644
--- a/src/librustc_mir/transform/mod.rs
+++ b/src/librustc_mir/transform/mod.rs
@@ -338,7 +338,7 @@ fn optimized_mir(tcx: TyCtxt<'_>, def_id: DefId) -> &BodyCache<'_> {
     tcx.arena.alloc(body_cache)
 }
 
-fn promoted_mir(tcx: TyCtxt, def_id: DefId) -> &IndexVec<Promoted, BodyCache> {
+fn promoted_mir(tcx: TyCtxt<'_>, def_id: DefId) -> &IndexVec<Promoted, BodyCache<'_>> {
     if tcx.is_constructor(def_id) {
         return tcx.intern_promoted(IndexVec::new());
     }