]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/path_utils.rs
Use Place directly on borrow_of_local_data, it's Copy
[rust.git] / src / librustc_mir / borrow_check / path_utils.rs
index e1cbdc43256ef62f2e19ae6ff8b4cb2e3f221562..f5238e7b7bedcf64baaec6039dd10a1eee762efc 100644 (file)
@@ -130,7 +130,7 @@ pub(super) fn is_active<'tcx>(
 
 /// Determines if a given borrow is borrowing local data
 /// This is called for all Yield expressions on movable generators
-pub(super) fn borrow_of_local_data(place: &Place<'_>) -> bool {
+pub(super) fn borrow_of_local_data(place: Place<'_>) -> bool {
     // Reborrow of already borrowed data is ignored
     // Any errors will be caught on the initial borrow
     !place.is_indirect()