diff options
| author | bors <bors@rust-lang.org> | 2017-08-09 04:03:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-09 04:03:49 +0000 |
| commit | 3f977baf34ed32c64c4ff185b4ef6ae2c2948afc (patch) | |
| tree | e9ce3edd355afc9fdfba987d21d27fdc9d91540d /src/rustllvm/RustWrapper.cpp | |
| parent | 0f9317d37e5469a8ce3b77ed49dd3eb315c8c859 (diff) | |
| parent | f5ac228b366b96892fb2c950fa1269d437df8360 (diff) | |
| download | rust-3f977baf34ed32c64c4ff185b4ef6ae2c2948afc.tar.gz rust-3f977baf34ed32c64c4ff185b4ef6ae2c2948afc.zip | |
Auto merge of #43728 - zackmdavis:fnused, r=eddyb
#[must_use] for functions This implements [RFC 1940](https://github.com/rust-lang/rfcs/pull/1940). The RFC and discussion thereof seem to suggest that tagging `PartialEq::eq` and friends as `#[must_use]` would automatically lint for unused comparisons, but it doesn't work out that way (at least the way I've implemented it): unused `.eq` method calls get linted, but not `==` expressions. (The lint operates on the HIR, which sees binary operations as their own thing, even if they ultimately just call `.eq` _&c._.) What do _you_ think?? Resolves #43302.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
