diff options
| author | bors <bors@rust-lang.org> | 2016-03-06 15:10:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-06 15:10:44 +0000 |
| commit | 71f4658c14c63be2c9e6dbf85e46c10cf20fed71 (patch) | |
| tree | 3735bc58e00addda52b6f5ffc4193a85a54151c1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 80922a7ad8dfc2a774233a190d36f895d655a83c (diff) | |
| parent | cfe4efd0523cd8106b20ba732f7d7677548f8157 (diff) | |
| download | rust-71f4658c14c63be2c9e6dbf85e46c10cf20fed71.tar.gz rust-71f4658c14c63be2c9e6dbf85e46c10cf20fed71.zip | |
Auto merge of #32048 - bluss:overloaded-assign-op, r=eddyb
Do not trigger unused_assignments for overloaded AssignOps If `v` were a type with some kind of indirection, so that `v += 1` would have an effect even if `v` were not used anymore, the unused_assignments lint would mark a false positive. This exempts overloaded (non-primitive) assign ops from being treated as assignments (they are method calls). The previous compile-fail tests that ensure x += 1 can trigger for primitive types continue to pass. Added a representative test for the "view" indirection. Fixes #31895
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
