diff options
| author | marmeladema <xademax@gmail.com> | 2020-04-16 20:36:32 +0100 |
|---|---|---|
| committer | marmeladema <xademax@gmail.com> | 2020-04-23 23:14:07 +0100 |
| commit | bfce24aa675072c832e5160acdefc4e98b7fe8f3 (patch) | |
| tree | 0f34ec764cbfad806fa1880f0125edf93b0af9e6 /src/librustc_mir/util | |
| parent | 6148db719f34a35099eff46097b5d2d9770892e9 (diff) | |
| download | rust-bfce24aa675072c832e5160acdefc4e98b7fe8f3.tar.gz rust-bfce24aa675072c832e5160acdefc4e98b7fe8f3.zip | |
Modify `as_local_hir_id` to return a bare `HirId`
Diffstat (limited to 'src/librustc_mir/util')
| -rw-r--r-- | src/librustc_mir/util/liveness.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/util/liveness.rs b/src/librustc_mir/util/liveness.rs index 595f39d028d..c6eefcc5eca 100644 --- a/src/librustc_mir/util/liveness.rs +++ b/src/librustc_mir/util/liveness.rs @@ -285,7 +285,7 @@ fn dump_matched_mir_node<'tcx>( ) { let mut file_path = PathBuf::new(); file_path.push(Path::new(&tcx.sess.opts.debugging_opts.dump_mir_dir)); - let item_id = tcx.hir().as_local_hir_id(source.def_id().expect_local()).unwrap(); + let item_id = tcx.hir().as_local_hir_id(source.def_id().expect_local()); let file_name = format!("rustc.node{}{}-liveness.mir", item_id, pass_name); file_path.push(&file_name); let _ = fs::File::create(&file_path).and_then(|file| { |
