rust/clippy_lints/src
bors ba6681300e Auto merge of #4436 - BO41:written_as, r=phansch
Add some "could be written as" examples

fixes #4405
changelog: none
2019-08-26 11:11:57 +00:00
..
methods Auto merge of #4436 - BO41:written_as, r=phansch 2019-08-26 11:11:57 +00:00
utils Rustup to https://github.com/rust-lang/rust/pull/63854 2019-08-25 08:06:32 +02:00
approx_const.rs Dogfood 2019-05-18 01:42:15 +02:00
arithmetic.rs Doctests: Enable running doc tests for restriction lints 2019-08-03 21:24:50 +02:00
assertions_on_constants.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
assign_ops.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
attrs.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
bit_mask.rs
blacklisted_name.rs
block_in_if_condition.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
booleans.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
bytecount.rs Doctests: Enable running doc tests for perf lints 2019-08-03 08:08:00 +02:00
cargo_common_metadata.rs
checked_conversions.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
cognitive_complexity.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
collapsible_if.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
consts.rs Rustup https://github.com/rust-lang/rust/pull/59369 2019-08-06 19:20:41 +07:00
copies.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
copy_iterator.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
dbg_macro.rs Rustup "Remove Spanned from {ast,hir}::FieldPat" 2019-08-16 09:32:27 +07:00
default_trait_access.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
deprecated_lints.rs Deprecate unused_collect lint 2019-08-14 21:47:11 +02:00
derive.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
doc.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
double_comparison.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
double_parens.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
drop_bounds.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
drop_forget_ref.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
duration_subsec.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
else_if_without_else.rs Doctests: Enable running doc tests for restriction lints 2019-08-03 21:24:50 +02:00
empty_enum.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
entry.rs Doctests: Enable running doc tests for perf lints 2019-08-03 08:08:00 +02:00
enum_clike.rs Rustup to rust-lang/rust#63543 2019-08-15 10:14:06 +02:00
enum_glob_use.rs rustup https://github.com/rust-lang/rust/pull/61836/ 2019-06-18 11:15:47 +02:00
enum_variants.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
eq_op.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
erasing_op.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
escape.rs Doctests: Enable running doc tests for perf lints 2019-08-03 08:08:00 +02:00
eta_reduction.rs redundant_closure_for_method_calls fixes: 2019-06-12 13:43:36 +02:00
eval_order_dependence.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
excessive_precision.rs Update all the code to pass the updated use_self lint. 2019-07-31 08:50:43 +00:00
explicit_write.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
fallible_impl_from.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
format.rs Re-add false positive check 2019-08-23 09:16:50 +00:00
formatting.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
functions.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
get_last_with_len.rs Formatting inside if_chain! macro 2019-05-21 10:45:38 +02:00
identity_conversion.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
identity_op.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
if_not_else.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
implicit_return.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
indexing_slicing.rs Rustup https://github.com/rust-lang/rust/pull/59369 2019-08-06 19:20:41 +07:00
infallible_destructuring_match.rs
infinite_iter.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
inherent_impl.rs Fix breakage due to rust-lang/rust#61968 2019-06-21 08:14:07 +02:00
inherent_to_string.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
inline_fn_without_body.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
int_plus_one.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
integer_division.rs Downgrade integer_division to restriction 2019-06-15 00:17:04 -07:00
items_after_statements.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
large_enum_variant.rs Rustup to rust-lang/rust#63543 2019-08-15 10:14:06 +02:00
len_zero.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
let_if_seq.rs Fix warnings about unnecessary lifetime bounds 2019-06-20 01:36:23 +07:00
lib.rs Import rustc_plugin from its new location 2019-08-19 17:52:10 +02:00
lifetimes.rs Auto merge of #4325 - phansch:doctests_complexity, r=flip1995 2019-08-03 13:24:07 +00:00
literal_representation.rs Update all the code to pass the updated use_self lint. 2019-07-31 08:50:43 +00:00
loops.rs Add examples to some complexity lints 2019-08-22 15:41:07 +02:00
main_recursion.rs Move expression check to LateLintPass 2019-08-05 13:23:30 +02:00
map_clone.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
map_unit_fn.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
matches.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
mem_discriminant.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
mem_forget.rs Doctests: Enable running doc tests for restriction lints 2019-08-03 21:24:50 +02:00
mem_replace.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
minmax.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
misc_early.rs Cleaner code for unsep literals 2019-08-26 16:11:43 +07:00
misc.rs Add example to a perf lint 2019-08-22 15:41:07 +02:00
missing_const_for_fn.rs Doctests: Enable running doc tests for nursery lints 2019-08-03 21:01:23 +02:00
missing_doc.rs Rustup to https://github.com/rust-lang/rust/pull/63854 2019-08-25 08:06:32 +02:00
missing_inline.rs Rollup merge of #4331 - phansch:doctests_restriction, r=flip1995 2019-08-05 10:50:06 +02:00
multiple_crate_versions.rs
mut_mut.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
mut_reference.rs
mutex_atomic.rs Doctests: Enable running doc tests for nursery lints 2019-08-03 21:01:23 +02:00
needless_bool.rs Add examples to some complexity lints 2019-08-22 15:41:07 +02:00
needless_borrow.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
needless_borrowed_ref.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
needless_continue.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
needless_pass_by_value.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
needless_update.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
neg_cmp_op_on_partial_ord.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
neg_multiply.rs
new_without_default.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
no_effect.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
non_copy_const.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
non_expressive_names.rs Rustup "Remove Spanned from {ast,hir}::FieldPat" 2019-08-16 09:32:27 +07:00
ok_if_let.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
open_options.rs Update formatting 2019-08-01 07:09:57 +02:00
overflow_check_conditional.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
panic_unimplemented.rs Use outer_expn_data instead of outer_expn_info 2019-08-16 09:31:12 -07:00
partialeq_ne_impl.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
path_buf_push_overwrite.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
precedence.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
ptr_offset_with_cast.rs Update all the code to pass the updated use_self lint. 2019-07-31 08:50:43 +00:00
ptr.rs Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
question_mark.rs rustup https://github.com/rust-lang/rust/pull/61995 2019-07-03 18:00:35 +02:00
ranges.rs Add examples to some complexity lints 2019-08-22 15:41:07 +02:00
redundant_clone.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
redundant_field_names.rs
redundant_pattern_matching.rs Fix suggestions for redundant_pattern_matching 2019-08-21 07:29:44 +02:00
redundant_static_lifetimes.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
reference.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
regex.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
replace_consts.rs Doctests: Enable running doc tests for pedantic lints 2019-08-03 20:36:38 +02:00
returns.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
serde_api.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
shadow.rs Rustup "Remove Spanned from {ast,hir}::FieldPat" 2019-08-16 09:32:27 +07:00
slow_vector_initialization.rs Doctests: Enable running doc tests for perf lints 2019-08-03 08:08:00 +02:00
strings.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
suspicious_trait_impl.rs get_parent_node_by_hir_id -> get_parent_node 2019-06-25 14:33:51 -07:00
swap.rs Add examples to some correctness lints 2019-08-22 15:41:07 +02:00
temporary_assignment.rs Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03) 2019-05-03 22:28:34 -07:00
trait_bounds.rs Made lint pedantic 2019-08-17 11:45:05 +01:00
transmute.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00
transmuting_null.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
trivially_copy_pass_by_ref.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
try_err.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
types.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
unicode.rs Update Unicode lint tests 2019-08-23 05:42:45 +00:00
unsafe_removed_from_name.rs
unused_io_amount.rs Prevent symbocalypse 2019-05-17 23:53:54 +02:00
unused_label.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
unwrap.rs Remove in_macro_or_desugar 2019-08-19 09:30:32 -07:00
use_self.rs Update formatting 2019-08-01 07:09:57 +02:00
vec.rs Use outer_expn_data instead of outer_expn_info 2019-08-16 09:31:12 -07:00
wildcard_dependencies.rs
write.rs Rustup "Remove Spanned from {ast,hir}::FieldPat" 2019-08-16 09:32:27 +07:00
zero_div_zero.rs Doctests: Fix all complexity lint docs 2019-08-02 18:16:35 +02:00