about summary refs log tree commit diff
path: root/src/librustc_mir/dataflow/impls/borrows.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-20 15:06:41 +0000
committerbors <bors@rust-lang.org>2018-01-20 15:06:41 +0000
commit15a1e2844dfea7850be5c6c901b67ceff370b0eb (patch)
tree2929f026038000e5f0ecfdbe6e1e0fb378157a6b /src/librustc_mir/dataflow/impls/borrows.rs
parentbdda8d61151a91fcc95b059918dd834c8e7ac09e (diff)
parent14982db2d68268458a3de03e395b2e9afe518b50 (diff)
downloadrust-15a1e2844dfea7850be5c6c901b67ceff370b0eb.tar.gz
rust-15a1e2844dfea7850be5c6c901b67ceff370b0eb.zip
Auto merge of #46980 - zackmdavis:and_the_case_of_the_needlessly_parenthesized_arguments, r=petrochenkov
in which the unused-parens lint comes to cover function and method args

Resolves #46137.
Diffstat (limited to 'src/librustc_mir/dataflow/impls/borrows.rs')
-rw-r--r--src/librustc_mir/dataflow/impls/borrows.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/dataflow/impls/borrows.rs b/src/librustc_mir/dataflow/impls/borrows.rs
index f76aea19677..f543a33b130 100644
--- a/src/librustc_mir/dataflow/impls/borrows.rs
+++ b/src/librustc_mir/dataflow/impls/borrows.rs
@@ -131,7 +131,7 @@ impl<'tcx> fmt::Display for BorrowData<'tcx> {
 }
 
 impl ReserveOrActivateIndex {
-    fn reserved(i: BorrowIndex) -> Self { ReserveOrActivateIndex::new((i.index() * 2)) }
+    fn reserved(i: BorrowIndex) -> Self { ReserveOrActivateIndex::new(i.index() * 2) }
     fn active(i: BorrowIndex) -> Self { ReserveOrActivateIndex::new((i.index() * 2) + 1) }
 
     pub(crate) fn is_reservation(self) -> bool { self.index() % 2 == 0 }