提交 e4e377f6 编写于 作者: B bobtwinkles

Remove unused field on BorrowData

上级 47d75afd
......@@ -93,8 +93,6 @@ pub struct BorrowData<'tcx> {
/// Location where the borrow reservation starts.
/// In many cases, this will be equal to the activation location but not always.
pub(crate) reserve_location: Location,
/// Point where the borrow is activated.
pub(crate) activate_location: Location,
/// What kind of borrow this is
pub(crate) kind: mir::BorrowKind,
/// The region for which this borrow is live
......@@ -205,7 +203,7 @@ fn root_local(mut p: &mir::Place<'_>) -> Option<mir::Local> {
region,
kind);
let borrow = BorrowData {
activate_location, kind, region,
kind, region,
reserve_location: location,
borrowed_place: borrowed_place.clone(),
assigned_place: assigned_place.clone(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册