Skip to content

Commit 5aa1cbf

Browse files
committed
make MirSource::from_local_def_id invokable with 'gcx and 'tcx
1 parent 68c4844 commit 5aa1cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub enum MirSource {
4040
}
4141

4242
impl<'a, 'gcx, 'tcx> MirSource {
43-
pub fn from_local_def_id(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> MirSource {
43+
pub fn from_local_def_id(tcx: TyCtxt<'a, 'gcx, 'tcx>, def_id: DefId) -> MirSource {
4444
let id = tcx.hir.as_local_node_id(def_id).expect("mir source requires local def-id");
4545
Self::from_node(tcx, id)
4646
}

0 commit comments

Comments
 (0)