rust/src/libsyntax
Guillaume Gomez 8a25ec019e Rollup merge of #44103 - zackmdavis:cmp_op_must_use, r=arielb1
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.

cc @crumblingstatue
2017-09-24 14:01:49 +02:00
..
diagnostics Make fields of Span private 2017-08-30 01:38:54 +03:00
ext suggest an outer attribute when #![derive(...)] (predictably) fails 2017-09-21 21:20:31 -07:00
parse Include unary operator to span for ExprKind::Unary 2017-09-22 01:19:34 +09:00
print pprust: fix parenthesization of exprs 2017-09-06 10:26:51 -04:00
util pprust: increase precedence of block-like exprs 2017-09-07 10:28:31 -04:00
abi.rs add thiscall calling convention support 2017-05-24 16:40:03 -04:00
ast.rs incr.comp.: Compute hashes of all query results. 2017-09-18 11:23:08 +02:00
attr.rs Fix ICE 2017-09-20 20:48:06 +02:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
Cargo.toml Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
codemap.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
config.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
diagnostic_list.rs rustc: Move some attr methods to queries 2017-09-17 09:41:43 -07:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs add comparison operators to must-use lint (under fn_must_use feature) 2017-09-22 15:45:47 -07:00
fold.rs Implement RFC 1925 2017-09-01 12:46:37 -05:00
json.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
lib.rs Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
ptr.rs Replace some matches with try. 2017-06-07 12:15:39 +09:00
README.md rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00
show_span.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
std_inject.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
test_snippet.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
tokenstream.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
visit.rs Remove support for gen arg 2017-07-28 15:46:26 +02:00

NB: This crate is part of the Rust compiler. For an overview of the compiler as a whole, see the README.md file found in librustc.

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.