about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-28 04:14:12 +0000
committerbors <bors@rust-lang.org>2018-04-28 04:14:12 +0000
commit1eb0cef62b3e83bf7ce6bc7d1b99e130648a55e8 (patch)
treea421589312b46f56be896405fea3f3b01c3ed228 /src/libsyntax/parse
parentede7f94794213187b7d8984fdd24be6eb6106b96 (diff)
parent91aa267eda21be36d7cae43b6809eba63f1aac4c (diff)
downloadrust-1eb0cef62b3e83bf7ce6bc7d1b99e130648a55e8.tar.gz
rust-1eb0cef62b3e83bf7ce6bc7d1b99e130648a55e8.zip
Auto merge of #50149 - aaronaaeng:master, r=estebank
Added warning for unused arithmetic expressions

The compiler now displays a warning when a binary arithmetic operation is evaluated but not used.  This resolves #50124  by following the instructions outlined in the issue.  The changes are as follows:

- Added new pattern matching for unused arithmetic expressions in `src/librustc_lint/unused.rs`
- Added `#[must_use]` attributes to the binary operation methods in `src/libcore/internal_macros.rs`
- Added `#[must_use]` attributes to the non-assigning binary operators in `src/libcore/ops/arith.rs`
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions