]> git.lizzy.rs Git - rust.git/commitdiff
make `MirSource::from_local_def_id` invokable with 'gcx and 'tcx
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 26 Oct 2017 13:48:33 +0000 (09:48 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 31 Oct 2017 16:41:39 +0000 (12:41 -0400)
src/librustc/mir/transform.rs

index 92e62b14693f4f746c29914291a8db745db0cf9e..6c90a5f38d02765180719f7192720c8fbe34f87f 100644 (file)
@@ -40,7 +40,7 @@ pub enum MirSource {
 }
 
 impl<'a, 'gcx, 'tcx> MirSource {
-    pub fn from_local_def_id(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> MirSource {
+    pub fn from_local_def_id(tcx: TyCtxt<'a, 'gcx, 'tcx>, def_id: DefId) -> MirSource {
         let id = tcx.hir.as_local_node_id(def_id).expect("mir source requires local def-id");
         Self::from_node(tcx, id)
     }