-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint-names.txt
700 lines (700 loc) · 13.6 KB
/
lint-names.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
absolute_paths
absurd_extreme_comparisons
alloc_instead_of_core
allow_attributes
allow_attributes_without_reason
almost_complete_range
almost_swapped
approx_constant
arc_with_non_send_sync
arithmetic_side_effects
as_conversions
as_ptr_cast_mut
as_underscore
assertions_on_constants
assertions_on_result_states
assign_op_pattern
async_yields_async
await_holding_invalid_type
await_holding_lock
await_holding_refcell_ref
bad_bit_mask
big_endian_bytes
bind_instead_of_map
blanket_clippy_restriction_lints
blocks_in_conditions
bool_assert_comparison
bool_comparison
bool_to_int_with_if
borrow_as_ptr
borrow_deref_ref
borrow_interior_mutable_const
borrowed_box
box_collection
box_default
boxed_local
branches_sharing_code
builtin_type_shadow
bytes_count_to_len
bytes_nth
cargo_common_metadata
case_sensitive_file_extension_comparisons
cast_abs_to_unsigned
cast_enum_constructor
cast_enum_truncation
cast_lossless
cast_nan_to_int
cast_possible_truncation
cast_possible_wrap
cast_precision_loss
cast_ptr_alignment
cast_sign_loss
cast_slice_different_sizes
cast_slice_from_raw_parts
char_lit_as_u8
chars_last_cmp
chars_next_cmp
checked_conversions
clear_with_drain
clone_on_copy
clone_on_ref_ptr
cloned_instead_of_copied
cmp_null
cmp_owned
cognitive_complexity
collapsible_else_if
collapsible_if
collapsible_match
collapsible_str_replace
collection_is_never_read
comparison_chain
comparison_to_empty
copy_iterator
crate_in_macro_def
create_dir
crosspointer_transmute
dbg_macro
debug_assert_with_mut_call
decimal_literal_representation
declare_interior_mutable_const
default_constructed_unit_structs
default_instead_of_iter_empty
default_numeric_fallback
default_trait_access
default_union_representation
deprecated_cfg_attr
deprecated_semver
deref_addrof
deref_by_slicing
derivable_impls
derive_ord_xor_partial_ord
derive_partial_eq_without_eq
derived_hash_with_manual_eq
disallowed_macros
disallowed_methods
disallowed_names
disallowed_script_idents
disallowed_types
diverging_sub_expression
doc_link_with_quotes
doc_markdown
double_comparisons
double_must_use
double_neg
double_parens
drain_collect
drop_non_drop
duplicate_mod
duplicate_underscore_argument
duration_subsec
eager_transmute
else_if_without_else
empty_drop
empty_enum
empty_enum_variants_with_brackets
empty_line_after_doc_comments
empty_line_after_outer_attr
empty_loop
empty_structs_with_brackets
enum_clike_unportable_variant
enum_glob_use
enum_variant_names
eq_op
equatable_if_let
erasing_op
err_expect
error_impl_error
excessive_nesting
excessive_precision
exhaustive_enums
exhaustive_structs
exit
expect_fun_call
expect_used
expl_impl_clone_on_copy
explicit_auto_deref
explicit_counter_loop
explicit_deref_methods
explicit_into_iter_loop
explicit_iter_loop
explicit_write
extend_with_drain
extra_unused_lifetimes
extra_unused_type_parameters
fallible_impl_from
field_reassign_with_default
filetype_is_file
filter_map_bool_then
filter_map_identity
filter_map_next
filter_next
flat_map_identity
flat_map_option
float_arithmetic
float_cmp
float_cmp_const
float_equality_without_abs
fn_address_comparisons
fn_params_excessive_bools
fn_to_numeric_cast
fn_to_numeric_cast_any
fn_to_numeric_cast_with_truncation
for_kv_map
forget_non_drop
format_collect
format_in_format_args
format_push_string
four_forward_slashes
from_iter_instead_of_collect
from_over_into
from_raw_with_void_ptr
from_str_radix_10
future_not_send
get_first
get_last_with_len
get_unwrap
host_endian_bytes
identity_op
if_let_mutex
if_not_else
if_same_then_else
if_then_some_else_none
ifs_same_cond
ignored_unit_patterns
impl_hash_borrow_with_str_and_bytes
impl_trait_in_params
implicit_clone
implicit_hasher
implicit_return
implicit_saturating_add
implicit_saturating_sub
implied_bounds_in_impls
impossible_comparisons
imprecise_flops
inconsistent_digit_grouping
inconsistent_struct_constructor
index_refutable_slice
indexing_slicing
ineffective_bit_mask
ineffective_open_options
inefficient_to_string
infallible_destructuring_match
infinite_iter
infinite_loop
inherent_to_string
inherent_to_string_shadow_display
init_numbered_fields
inline_always
inline_asm_x86_att_syntax
inline_asm_x86_intel_syntax
inline_fn_without_body
inspect_for_each
int_plus_one
integer_division
into_iter_on_ref
into_iter_without_iter
invalid_null_ptr_usage
invalid_regex
invalid_upcast_comparisons
invisible_characters
is_digit_ascii_radix
items_after_statements
items_after_test_module
iter_cloned_collect
iter_count
iter_filter_is_ok
iter_filter_is_some
iter_kv_map
iter_next_loop
iter_next_slice
iter_not_returning_iterator
iter_nth
iter_nth_zero
iter_on_empty_collections
iter_on_single_items
iter_out_of_bounds
iter_over_hash_type
iter_overeager_cloned
iter_skip_next
iter_skip_zero
iter_with_drain
iter_without_into_iter
iterator_step_by_zero
join_absolute_paths
just_underscores_and_digits
large_const_arrays
large_digit_groups
large_enum_variant
large_futures
large_include_file
large_stack_arrays
large_stack_frames
large_types_passed_by_value
len_without_is_empty
len_zero
let_and_return
let_underscore_future
let_underscore_lock
let_underscore_must_use
let_underscore_untyped
let_unit_value
let_with_type_underscore
lines_filter_map_ok
linkedlist
little_endian_bytes
lossy_float_literal
macro_use_imports
main_recursion
manual_assert
manual_async_fn
manual_bits
manual_clamp
manual_filter
manual_filter_map
manual_find
manual_find_map
manual_flatten
manual_hash_one
manual_instant_elapsed
manual_is_ascii_check
manual_is_finite
manual_is_infinite
manual_is_variant_and
manual_let_else
manual_main_separator_str
manual_map
manual_memcpy
manual_next_back
manual_non_exhaustive
manual_ok_or
manual_range_contains
manual_range_patterns
manual_rem_euclid
manual_retain
manual_saturating_arithmetic
manual_slice_size_calculation
manual_split_once
manual_str_repeat
manual_string_new
manual_strip
manual_swap
manual_try_fold
manual_unwrap_or
manual_while_let_some
many_single_char_names
map_clone
map_collect_result_unit
map_entry
map_err_ignore
map_flatten
map_identity
map_unwrap_or
match_as_ref
match_bool
match_like_matches_macro
match_on_vec_items
match_overlapping_arm
match_ref_pats
match_result_ok
match_same_arms
match_single_binding
match_str_case_mismatch
match_wild_err_arm
match_wildcard_for_single_variants
maybe_infinite_iter
maybe_misused_cfg
mem_forget
mem_replace_option_with_none
mem_replace_with_default
mem_replace_with_uninit
min_ident_chars
min_max
mismatched_target_os
mismatching_type_param_order
misnamed_getters
misrefactored_assign_op
missing_assert_message
missing_asserts_for_indexing
missing_const_for_fn
missing_docs_in_private_items
missing_enforced_import_renames
missing_errors_doc
missing_fields_in_debug
missing_inline_in_public_items
missing_panics_doc
missing_safety_doc
missing_spin_loop
missing_trait_methods
mistyped_literal_suffixes
mixed_case_hex_literals
mixed_read_write_in_expression
mod_module_files
module_inception
module_name_repetitions
modulo_arithmetic
modulo_one
multi_assignments
multiple_crate_versions
multiple_inherent_impl
multiple_unsafe_ops_per_block
must_use_candidate
must_use_unit
mut_from_ref
mut_mut
mut_mutex_lock
mut_range_bound
mutable_key_type
mutex_atomic
mutex_integer
naive_bytecount
needless_arbitrary_self_type
needless_bitwise_bool
needless_bool
needless_bool_assign
needless_borrow
needless_borrowed_reference
needless_borrows_for_generic_args
needless_collect
needless_continue
needless_doctest_main
needless_else
needless_for_each
needless_if
needless_late_init
needless_lifetimes
needless_match
needless_option_as_deref
needless_option_take
needless_parens_on_range_literals
needless_pass_by_ref_mut
needless_pass_by_value
needless_pub_self
needless_question_mark
needless_range_loop
needless_raw_string_hashes
needless_raw_strings
needless_return
needless_return_with_question_mark
needless_splitn
needless_update
neg_cmp_op_on_partial_ord
neg_multiply
negative_feature_names
never_loop
new_ret_no_self
new_without_default
no_effect
no_effect_replace
no_effect_underscore_binding
no_mangle_with_rust_abi
non_ascii_literal
non_canonical_clone_impl
non_canonical_partial_ord_impl
non_minimal_cfg
non_octal_unix_permissions
non_send_fields_in_send_ty
nonminimal_bool
nonsensical_open_options
nonstandard_macro_braces
not_unsafe_ptr_arg_deref
obfuscated_if_else
octal_escapes
ok_expect
only_used_in_recursion
op_ref
option_as_ref_cloned
option_as_ref_deref
option_env_unwrap
option_filter_map
option_if_let_else
option_map_or_err_ok
option_map_or_none
option_map_unit_fn
option_option
or_fun_call
or_then_unwrap
out_of_bounds_indexing
overflow_check_conditional
overly_complex_bool_expr
panic
panic_in_result_fn
panicking_unwrap
partial_pub_fields
partialeq_ne_impl
partialeq_to_none
path_buf_push_overwrite
path_ends_with_ext
pattern_type_mismatch
permissions_set_readonly_false
possible_missing_comma
precedence
print_in_format_impl
print_literal
print_stderr
print_stdout
print_with_newline
println_empty_string
ptr_arg
ptr_as_ptr
ptr_cast_constness
ptr_eq
ptr_offset_with_cast
pub_underscore_fields
pub_use
pub_with_shorthand
pub_without_shorthand
question_mark
question_mark_used
range_minus_one
range_plus_one
range_zip_with_len
rc_buffer
rc_clone_in_vec_init
rc_mutex
read_line_without_trim
read_zero_byte_vec
readonly_write_lock
recursive_format_impl
redundant_allocation
redundant_as_str
redundant_async_block
redundant_at_rest_pattern
redundant_clone
redundant_closure
redundant_closure_call
redundant_closure_for_method_calls
redundant_comparisons
redundant_else
redundant_feature_names
redundant_field_names
redundant_guards
redundant_locals
redundant_pattern
redundant_pattern_matching
redundant_pub_crate
redundant_slicing
redundant_static_lifetimes
redundant_type_annotations
ref_binding_to_reference
ref_option_ref
ref_patterns
repeat_once
repeat_vec_with_capacity
reserve_after_initialization
rest_pat_in_fully_bound_structs
result_filter_map
result_large_err
result_map_or_into_option
result_map_unit_fn
result_unit_err
return_self_not_must_use
reversed_empty_ranges
same_functions_in_if_condition
same_item_push
same_name_method
search_is_some
seek_from_current
seek_to_start_instead_of_rewind
self_assignment
self_named_constructors
self_named_module_files
semicolon_if_nothing_returned
semicolon_inside_block
semicolon_outside_block
separated_literal_suffix
serde_api_misuse
shadow_reuse
shadow_same
shadow_unrelated
short_circuit_statement
should_implement_trait
should_panic_without_expect
significant_drop_in_scrutinee
significant_drop_tightening
similar_names
single_call_fn
single_char_add_str
single_char_lifetime_names
single_char_pattern
single_component_path_imports
single_element_loop
single_match
single_match_else
single_range_in_vec_init
size_of_in_element_count
size_of_ref
skip_while_next
slow_vector_initialization
stable_sort_primitive
std_instead_of_alloc
std_instead_of_core
str_split_at_newline
str_to_string
string_add
string_add_assign
string_extend_chars
string_from_utf8_as_bytes
string_lit_as_bytes
string_lit_chars_any
string_slice
string_to_string
strlen_on_c_strings
struct_excessive_bools
struct_field_names
suboptimal_flops
suspicious_arithmetic_impl
suspicious_assignment_formatting
suspicious_command_arg_space
suspicious_doc_comments
suspicious_else_formatting
suspicious_map
suspicious_op_assign_impl
suspicious_operation_groupings
suspicious_splitn
suspicious_to_owned
suspicious_unary_op_formatting
suspicious_xor_used_as_pow
swap_ptr_to_ref
tabs_in_doc_comments
temporary_assignment
test_attr_in_doctest
tests_outside_test_module
thread_local_initializer_can_be_made_const
to_digit_is_some
to_string_in_format_args
todo
too_many_arguments
too_many_lines
toplevel_ref_arg
trailing_empty_array
trait_duplication_in_bounds
transmute_bytes_to_str
transmute_float_to_int
transmute_int_to_bool
transmute_int_to_char
transmute_int_to_float
transmute_int_to_non_zero
transmute_null_to_fn
transmute_num_to_bytes
transmute_ptr_to_ptr
transmute_ptr_to_ref
transmute_undefined_repr
transmutes_expressible_as_ptr_casts
transmuting_null
trim_split_whitespace
trivial_regex
trivially_copy_pass_by_ref
try_err
tuple_array_conversions
type_complexity
type_id_on_box
type_repetition_in_bounds
unchecked_duration_subtraction
unconditional_recursion
undocumented_unsafe_blocks
unicode_not_nfc
unimplemented
uninhabited_references
uninit_assumed_init
uninit_vec
uninlined_format_args
unit_arg
unit_cmp
unit_hash
unit_return_expecting_ord
unnecessary_box_returns
unnecessary_cast
unnecessary_fallible_conversions
unnecessary_filter_map
unnecessary_find_map
unnecessary_fold
unnecessary_join
unnecessary_lazy_evaluations
unnecessary_literal_unwrap
unnecessary_map_on_constructor
unnecessary_mut_passed
unnecessary_operation
unnecessary_owned_empty_strings
unnecessary_safety_comment
unnecessary_safety_doc
unnecessary_self_imports
unnecessary_sort_by
unnecessary_struct_initialization
unnecessary_to_owned
unnecessary_unwrap
unnecessary_wraps
unneeded_field_pattern
unneeded_wildcard_pattern
unnested_or_patterns
unreachable
unreadable_literal
unsafe_derive_deserialize
unsafe_removed_from_name
unseparated_literal_suffix
unsound_collection_transmute
unused_async
unused_enumerate_index
unused_format_specs
unused_io_amount
unused_peekable
unused_rounding
unused_self
unused_unit
unusual_byte_groupings
unwrap_in_result
unwrap_or_default
unwrap_used
upper_case_acronyms
use_debug
use_self
used_underscore_binding
useless_asref
useless_attribute
useless_conversion
useless_format
useless_let_if_seq
useless_transmute
useless_vec
vec_box
vec_init_then_push
vec_resize_to_zero
verbose_bit_mask
verbose_file_reads
waker_clone_wake
while_immutable_condition
while_let_loop
while_let_on_iterator
wildcard_dependencies
wildcard_enum_match_arm
wildcard_imports
wildcard_in_or_patterns
write_literal
write_with_newline
writeln_empty_string
wrong_self_convention
wrong_transmute
zero_divided_by_zero
zero_prefixed_literal
zero_ptr
zero_sized_map_values
zst_offset