rust/src/librustc_lint
Zack M. Davis 8917616e6a add comparison operators to must-use lint (under fn_must_use feature)
Although RFC 1940 is about annotating functions with `#[must_use]`, a
key part of the motivation was linting unused equality operators.

(See
https://github.com/rust-lang/rfcs/pull/1812#issuecomment-265695898—it
seems to have not been clear to discussants at the time that marking the
comparison methods as `must_use` would not give us the lints on
comparison operators, at least in (what the present author understood
as) the most straightforward implementation, as landed in #43728
(3645b062).)

To rectify the situation, we here lint unused comparison operators as
part of the unused-must-use lint (feature gated by the `fn_must_use`
feature flag, which now arguably becomes a slight (tolerable in the
opinion of the present author) misnomer).

This is in the matter of #43302.
2017-09-22 15:45:47 -07:00
..
bad_style.rs Refactor lifetime name into an enum 2017-09-21 10:19:03 -07:00
builtin.rs Auto merge of #44435 - alexcrichton:in-scope, r=michaelwoerister 2017-09-11 15:35:35 +00:00
Cargo.toml Remove internal liblog 2017-03-23 11:28:00 -07:00
lib.rs rustc: Remove the used_unsafe field on TyCtxt 2017-08-30 16:09:02 -07:00
types.rs rustc: replace usize with u64 and ConstUsize. 2017-09-11 08:41:15 +03:00
unused.rs add comparison operators to must-use lint (under fn_must_use feature) 2017-09-22 15:45:47 -07:00