1[target.'cfg(all())'] 2rustflags = [ 3 "-Dfuture_incompatible", 4 "-Dnonstandard_style", 5 "-Drust_2018_idioms", 6 7 "-Wmissing_docs", 8 "-Wunsafe_op_in_unsafe_fn", 9 10 "-Wclippy::dbg_macro", 11 "-Wclippy::debug_assert_with_mut_call", 12 "-Wclippy::disallowed_types", 13 "-Wclippy::filter_map_next", 14 "-Wclippy::fn_params_excessive_bools", 15 "-Wclippy::imprecise_flops", 16 "-Wclippy::inefficient_to_string", 17 "-Wclippy::let_unit_value", 18 "-Wclippy::linkedlist", 19 "-Wclippy::lossy_float_literal", 20 "-Wclippy::macro_use_imports", 21 "-Wclippy::map_flatten", 22 "-Wclippy::match_on_vec_items", 23 "-Wclippy::mismatched_target_os", 24 "-Wclippy::needless_borrow", 25 "-Wclippy::needless_continue", 26 "-Wclippy::option_option", 27 "-Wclippy::ref_option_ref", 28 "-Wclippy::rest_pat_in_fully_bound_structs", 29 "-Wclippy::string_to_string", 30 "-Wclippy::suboptimal_flops", 31 "-Wclippy::verbose_file_reads", 32# "-Wclippy::unused_self", # might be interesting to explore this... 33 34 # deny exlicit panic paths 35 "-Wclippy::panic", 36 "-Wclippy::todo", 37 "-Wclippy::unimplemented", 38 "-Wclippy::unreachable", 39 40 "-Aclippy::collapsible_else_if", 41 "-Aclippy::collapsible_if", 42 "-Aclippy::too_many_arguments", 43 "-Aclippy::type_complexity", 44 "-Aclippy::bool_assert_comparison", 45 # Primarily due to rust-lang/rust#8995 46 # 47 # If this ever gets fixed, it's be possible to rewrite complex types using 48 # inherent associated type aliases. 49 # 50 # For example, instead of writing this monstrosity: 51 # 52 # Result<Option<MultiThreadStopReason<<Self::Arch as Arch>::Usize>>, Self::Error> 53 # 54 # ...it could be rewritten as: 55 # 56 # type StopReason = MultiThreadStopReason<<Self::Arch as Arch>::Usize>>; 57 # Result<Option<StopReason>, Self::Error> 58 "-Aclippy::type_complexity", 59 "-Aclippy::manual_range_patterns", 60] 61