From: bors Date: Wed, 9 Aug 2017 04:03:49 +0000 (+0000) Subject: Auto merge of #43728 - zackmdavis:fnused, r=eddyb X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3f977baf34ed32c64c4ff185b4ef6ae2c2948afc;p=rust.git 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. --- 3f977baf34ed32c64c4ff185b4ef6ae2c2948afc