address most easy comments
This commit is contained in:
parent
8fb4c41f35
commit
a52cc0a8c9
8 changed files with 33 additions and 42 deletions
|
@ -73,7 +73,10 @@ impl<'tcx> fmt::Display for BorrowData<'tcx> {
|
|||
mir::BorrowKind::Shared => "",
|
||||
mir::BorrowKind::Shallow => "shallow ",
|
||||
mir::BorrowKind::Mut { kind: mir::MutBorrowKind::ClosureCapture } => "uniq ",
|
||||
mir::BorrowKind::Mut { .. } => "mut ",
|
||||
// FIXME: differentiate `TwoPhaseBorrow`
|
||||
mir::BorrowKind::Mut {
|
||||
kind: mir::MutBorrowKind::Default | mir::MutBorrowKind::TwoPhaseBorrow,
|
||||
} => "mut ",
|
||||
};
|
||||
write!(w, "&{:?} {}{:?}", self.region, kind, self.borrowed_place)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue