diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-06-27 11:16:59 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-07-04 12:29:26 +0200 |
| commit | 4f7ba515c2bfacde6f09e860c3cc9f37bb742481 (patch) | |
| tree | a54f2b9a82afa41bcf8816176cb00202d841eb5c /src/librustc_driver | |
| parent | 7987719dbe7158df9304932ce5fb9145715626cb (diff) | |
| download | rust-4f7ba515c2bfacde6f09e860c3cc9f37bb742481.tar.gz rust-4f7ba515c2bfacde6f09e860c3cc9f37bb742481.zip | |
rename hir::map::local_def_id to local_def_id_from_node_id
Diffstat (limited to 'src/librustc_driver')
| -rw-r--r-- | src/librustc_driver/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/pretty.rs b/src/librustc_driver/pretty.rs index ff0c4ff548b..3be06e291ff 100644 --- a/src/librustc_driver/pretty.rs +++ b/src/librustc_driver/pretty.rs @@ -887,7 +887,7 @@ fn print_with_analysis( let mut print = || match ppm { PpmMir | PpmMirCFG => { if let Some(nodeid) = nodeid { - let def_id = tcx.hir().local_def_id(nodeid); + let def_id = tcx.hir().local_def_id_from_node_id(nodeid); match ppm { PpmMir => write_mir_pretty(tcx, Some(def_id), &mut out), PpmMirCFG => write_mir_graphviz(tcx, Some(def_id), &mut out), |
