rust/clippy_lints/src
Eduardo Broto d24a106395 Apply suggestions from PR review
- Show just one error message with multiple suggestions in case of
  using multiple times an OS in target family position
- Only suggest #[cfg(unix)] when the OS is in the Unix family
- Test all the operating systems
2020-04-26 21:27:29 +02:00
..
methods cargo dev fmt 2020-04-26 13:44:08 +02:00
utils More diagnostic items 2020-04-26 13:44:08 +02:00
approx_const.rs
arithmetic.rs
as_conversions.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
assertions_on_constants.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
assign_ops.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
atomic_ordering.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
attrs.rs Apply suggestions from PR review 2020-04-26 21:27:29 +02:00
await_holding_lock.rs span_lint_and_note now takes an Option<Span> for the note_span instead of just a span 2020-04-21 21:28:23 -07:00
bit_mask.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
blacklisted_name.rs
block_in_if_condition.rs
booleans.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
bytecount.rs
cargo_common_metadata.rs Only run cargo lints, when they are warn/deny/forbid 2020-04-22 20:32:37 +02:00
checked_conversions.rs
cognitive_complexity.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
collapsible_if.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
comparison_chain.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
consts.rs fix crash on issue-69020-assoc-const-arith-overflow.rs 2020-04-20 23:01:34 +02:00
copies.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
copy_iterator.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
dbg_macro.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
default_trait_access.rs
deprecated_lints.rs
dereference.rs Better precedence case management + more tests 2020-04-15 17:18:12 +02:00
derive.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
doc.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
double_comparison.rs
double_parens.rs
drop_bounds.rs
drop_forget_ref.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
duration_subsec.rs
else_if_without_else.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
empty_enum.rs Formatting and naming 2020-04-19 20:38:07 +02:00
entry.rs More diagnostic items 2020-04-26 13:44:08 +02:00
enum_clike.rs
enum_variants.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
eq_op.rs cargo dev fmt 2020-04-17 08:09:09 +02:00
erasing_op.rs
escape.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
eta_reduction.rs Fixes internal lint warning in code base. 2020-04-18 18:20:46 +08:00
eval_order_dependence.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
excessive_bools.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
exit.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
explicit_write.rs
fallible_impl_from.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
float_literal.rs
floating_point_arithmetic.rs
format.rs cargo dev fmt 2020-04-26 13:44:08 +02:00
formatting.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
functions.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
future_not_send.rs Cleanup: future_not_send: use return_ty method 2020-04-19 14:00:03 +02:00
get_last_with_len.rs
identity_conversion.rs Fixes internal lint warning in code base. 2020-04-18 18:20:46 +08:00
identity_op.rs
if_let_mutex.rs More diagnostic items 2020-04-26 13:44:08 +02:00
if_let_some_result.rs
if_not_else.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
implicit_return.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
implicit_saturating_sub.rs Added final lint and tests 2020-04-18 12:02:13 +05:30
indexing_slicing.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
infinite_iter.rs
inherent_impl.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
inherent_to_string.rs cargo dev fmt 2020-04-26 13:44:08 +02:00
inline_fn_without_body.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
int_plus_one.rs Fixes internal lint warning in code base. 2020-04-18 18:20:46 +08:00
integer_division.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
items_after_statements.rs
large_const_arrays.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
large_enum_variant.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
large_stack_arrays.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
len_zero.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
let_if_seq.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
let_underscore.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
lib.rs Implement mismatched_target_os lint 2020-04-26 21:27:29 +02:00
lifetimes.rs
literal_representation.rs
loops.rs More diagnostic items 2020-04-26 13:44:08 +02:00
macro_use.rs
main_recursion.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
map_clone.rs map_clone: avoid suggesting copied() for &mut 2020-04-25 22:52:19 +02:00
map_unit_fn.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
matches.rs Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
mem_discriminant.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
mem_forget.rs
mem_replace.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
minmax.rs
misc_early.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
misc.rs Don't trigger toplevel_ref_arg for for loops 2020-04-19 22:56:47 +09:00
missing_const_for_fn.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
missing_doc.rs
missing_inline.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
modulo_arithmetic.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
multiple_crate_versions.rs Only run cargo lints, when they are warn/deny/forbid 2020-04-22 20:32:37 +02:00
mut_key.rs
mut_mut.rs
mut_reference.rs
mutable_debug_assertion.rs
mutex_atomic.rs More diagnostic items 2020-04-26 13:44:08 +02:00
needless_bool.rs
needless_borrow.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
needless_borrowed_ref.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
needless_continue.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
needless_pass_by_value.rs cargo dev fmt 2020-04-26 13:44:08 +02:00
needless_update.rs
neg_cmp_op_on_partial_ord.rs
neg_multiply.rs
new_without_default.rs rustup https://github.com/rust-lang/rust/pull/71215/ 2020-04-24 15:29:31 +02:00
no_effect.rs
non_copy_const.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
non_expressive_names.rs
open_options.rs
option_env_unwrap.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
overflow_check_conditional.rs
panic_unimplemented.rs
partialeq_ne_impl.rs
path_buf_push_overwrite.rs
precedence.rs Integrate more idiomatic rust changes. 2020-04-17 10:12:30 +02:00
ptr_offset_with_cast.rs
ptr.rs More diagnostic items 2020-04-26 13:44:08 +02:00
question_mark.rs question_mark: don't add as_ref() for a call expression 2020-04-17 13:09:02 +09:00
ranges.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
redundant_clone.rs cargo dev fmt 2020-04-26 13:44:08 +02:00
redundant_field_names.rs
redundant_pattern_matching.rs fix redundant_pattern_matching lint 2020-04-25 23:51:30 +03:00
redundant_pub_crate.rs rustup to https://github.com/rust-lang/rust/pull/70043 2020-04-26 10:12:14 +02:00
redundant_static_lifetimes.rs cargo dev fmt 2020-04-17 08:09:09 +02:00
reference.rs
regex.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
returns.rs Formatting and naming 2020-04-19 20:38:07 +02:00
serde_api.rs
shadow.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
single_component_path_imports.rs
slow_vector_initialization.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
strings.rs More diagnostic items 2020-04-26 13:44:08 +02:00
suspicious_trait_impl.rs
swap.rs cargo dev fmt 2020-04-26 13:44:08 +02:00
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs
trait_bounds.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
transmute.rs Fixes internal lint warning in code base. 2020-04-18 18:20:46 +08:00
transmuting_null.rs
trivially_copy_pass_by_ref.rs
try_err.rs
types.rs Fix cargo crash 2020-04-26 14:11:58 +02:00
unicode.rs
unnamed_address.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
unsafe_removed_from_name.rs
unused_io_amount.rs
unused_self.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
unwrap.rs Cleanup: Rename 'db' variable to 'diag' 2020-04-17 08:08:00 +02:00
use_self.rs
vec.rs
verbose_file_reads.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00
wildcard_dependencies.rs Only run cargo lints, when they are warn/deny/forbid 2020-04-22 20:32:37 +02:00
wildcard_imports.rs
write.rs
zero_div_zero.rs Add an Option<Span> argument to span_lint_and_help. 2020-04-18 18:28:29 +08:00