diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-12-28 10:08:30 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-03-15 13:25:10 +0200 |
| commit | 27ddf2cec8126fbf1a272cee6ce6cb1c18b97e2a (patch) | |
| tree | 0657695a0aa5581749379384c631cbc99985463e /src/librustc_driver | |
| parent | 36f64f15fc0c530493206342d5e4c80f7643fc1d (diff) | |
| download | rust-27ddf2cec8126fbf1a272cee6ce6cb1c18b97e2a.tar.gz rust-27ddf2cec8126fbf1a272cee6ce6cb1c18b97e2a.zip | |
rustc: replace node_path_str with uses of def_path_str.
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 3182b2ce30c..dde88a21240 100644 --- a/src/librustc_driver/pretty.rs +++ b/src/librustc_driver/pretty.rs @@ -471,7 +471,7 @@ impl<'b, 'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'b, 'tcx> { } fn node_path(&self, id: ast::NodeId) -> Option<String> { - Some(self.tcx.node_path_str(id)) + Some(self.tcx.def_path_str(self.tcx.hir().local_def_id(id))) } } |
