diff options
author | Niko Matsakis <niko@alum.mit.edu> | 2018-04-06 18:03:23 -0400 |
---|---|---|
committer | Niko Matsakis <niko@alum.mit.edu> | 2018-04-15 07:06:29 -0400 |
commit | f93d5d30bd0d141f7c5acabb5d612897eaf83303 (patch) | |
tree | 5b4e96f52f2f253b5e9643dc5dc663cf408fa788 /src/librustc_mir/borrow_check/mod.rs | |
parent | encapsulate ReserveOrActivateIndex into the borrows dataflow (diff) | |
download | grust-f93d5d30bd0d141f7c5acabb5d612897eaf83303.tar.gz grust-f93d5d30bd0d141f7c5acabb5d612897eaf83303.tar.bz2 grust-f93d5d30bd0d141f7c5acabb5d612897eaf83303.tar.xz |
add useful debug
Diffstat (limited to 'src/librustc_mir/borrow_check/mod.rs')
-rw-r--r-- | src/librustc_mir/borrow_check/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index e4a4360a80..7c5f0b97f7 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs | |||
@@ -843,6 +843,14 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> { | |||
843 | rw: ReadOrWrite, | 843 | rw: ReadOrWrite, |
844 | flow_state: &Flows<'cx, 'gcx, 'tcx>, | 844 | flow_state: &Flows<'cx, 'gcx, 'tcx>, |
845 | ) -> bool { | 845 | ) -> bool { |
846 | debug!( | ||
847 | "check_access_for_conflict(context={:?}, place_span={:?}, sd={:?}, rw={:?})", | ||
848 | context, | ||
849 | place_span, | ||
850 | sd, | ||
851 | rw, | ||
852 | ); | ||
853 | |||
846 | let mut error_reported = false; | 854 | let mut error_reported = false; |
847 | self.each_borrow_involving_path( | 855 | self.each_borrow_involving_path( |
848 | context, | 856 | context, |