You've already forked lint-policy
Update for rust 1.99
This commit is contained in:
+10
-3
@@ -37,6 +37,7 @@ as_conversions = "deny"
|
|||||||
as_pointer_underscore = "deny"
|
as_pointer_underscore = "deny"
|
||||||
as_ptr_cast_mut = "deny"
|
as_ptr_cast_mut = "deny"
|
||||||
as_underscore = "deny"
|
as_underscore = "deny"
|
||||||
|
assert_is_empty = "allow"
|
||||||
assertions_on_result_states = "warn"
|
assertions_on_result_states = "warn"
|
||||||
assigning_clones = "warn"
|
assigning_clones = "warn"
|
||||||
big_endian_bytes = "allow"
|
big_endian_bytes = "allow"
|
||||||
@@ -69,6 +70,7 @@ decimal_literal_representation = "warn"
|
|||||||
default_numeric_fallback = "warn"
|
default_numeric_fallback = "warn"
|
||||||
default_trait_access = "warn"
|
default_trait_access = "warn"
|
||||||
default_union_representation = "allow"
|
default_union_representation = "allow"
|
||||||
|
definition_in_module_root = "allow"
|
||||||
deref_by_slicing = "warn"
|
deref_by_slicing = "warn"
|
||||||
derive_partial_eq_without_eq = "warn"
|
derive_partial_eq_without_eq = "warn"
|
||||||
disallowed_script_idents = "deny"
|
disallowed_script_idents = "deny"
|
||||||
@@ -160,6 +162,7 @@ lossy_float_literal = "warn"
|
|||||||
macro_use_imports = "warn"
|
macro_use_imports = "warn"
|
||||||
manual_assert = "warn"
|
manual_assert = "warn"
|
||||||
manual_assert_eq = "warn"
|
manual_assert_eq = "warn"
|
||||||
|
manual_bit_width = "warn"
|
||||||
manual_ilog2 = "warn"
|
manual_ilog2 = "warn"
|
||||||
manual_instant_elapsed = "warn"
|
manual_instant_elapsed = "warn"
|
||||||
manual_is_power_of_two = "warn"
|
manual_is_power_of_two = "warn"
|
||||||
@@ -216,7 +219,6 @@ non_send_fields_in_send_ty = "warn"
|
|||||||
non_std_lazy_statics = "warn"
|
non_std_lazy_statics = "warn"
|
||||||
non_zero_suggestions = "warn"
|
non_zero_suggestions = "warn"
|
||||||
nonminimal_bool = "warn"
|
nonminimal_bool = "warn"
|
||||||
nonstandard_macro_braces = "warn"
|
|
||||||
option_as_ref_cloned = "warn"
|
option_as_ref_cloned = "warn"
|
||||||
option_if_let_else = "warn"
|
option_if_let_else = "warn"
|
||||||
option_option = "warn"
|
option_option = "warn"
|
||||||
@@ -258,6 +260,7 @@ ref_option_ref = "warn"
|
|||||||
ref_patterns = "warn"
|
ref_patterns = "warn"
|
||||||
renamed_function_params = "warn"
|
renamed_function_params = "warn"
|
||||||
rest_pat_in_fully_bound_structs = "warn"
|
rest_pat_in_fully_bound_structs = "warn"
|
||||||
|
rest_pattern_accessible_field = "warn"
|
||||||
return_and_then = "warn"
|
return_and_then = "warn"
|
||||||
return_self_not_must_use = "warn"
|
return_self_not_must_use = "warn"
|
||||||
same_functions_in_if_condition = "warn"
|
same_functions_in_if_condition = "warn"
|
||||||
@@ -321,6 +324,7 @@ unnecessary_box_returns = "warn"
|
|||||||
unnecessary_debug_formatting = "warn"
|
unnecessary_debug_formatting = "warn"
|
||||||
unnecessary_join = "warn"
|
unnecessary_join = "warn"
|
||||||
unnecessary_literal_bound = "warn"
|
unnecessary_literal_bound = "warn"
|
||||||
|
unnecessary_rest_pattern = "warn"
|
||||||
unnecessary_safety_comment = "warn"
|
unnecessary_safety_comment = "warn"
|
||||||
unnecessary_safety_doc = "warn"
|
unnecessary_safety_doc = "warn"
|
||||||
unnecessary_self_imports = "warn"
|
unnecessary_self_imports = "warn"
|
||||||
@@ -450,7 +454,6 @@ mutable_transmutes = "deny"
|
|||||||
named_arguments_used_positionally = "warn"
|
named_arguments_used_positionally = "warn"
|
||||||
named_asm_labels = "deny"
|
named_asm_labels = "deny"
|
||||||
no_mangle_const_items = "deny"
|
no_mangle_const_items = "deny"
|
||||||
no_mangle_generic_items = "warn"
|
|
||||||
non_ascii_idents = "deny"
|
non_ascii_idents = "deny"
|
||||||
non_contiguous_range_endpoints = "warn"
|
non_contiguous_range_endpoints = "warn"
|
||||||
non_local_definitions = "warn"
|
non_local_definitions = "warn"
|
||||||
@@ -462,6 +465,7 @@ overlapping_range_endpoints = "warn"
|
|||||||
private_bounds = "warn"
|
private_bounds = "warn"
|
||||||
private_interfaces = "warn"
|
private_interfaces = "warn"
|
||||||
ptr_to_integer_transmute_in_consts = "warn"
|
ptr_to_integer_transmute_in_consts = "warn"
|
||||||
|
raw_borrows_via_references = "warn"
|
||||||
redundant_imports = "warn"
|
redundant_imports = "warn"
|
||||||
redundant_lifetimes = "warn"
|
redundant_lifetimes = "warn"
|
||||||
renamed_and_removed_lints = "warn"
|
renamed_and_removed_lints = "warn"
|
||||||
@@ -491,7 +495,6 @@ unnameable_test_items = "warn"
|
|||||||
unnameable_types = "warn"
|
unnameable_types = "warn"
|
||||||
unnecessary_transmutes = "warn"
|
unnecessary_transmutes = "warn"
|
||||||
unpredictable_function_pointer_comparisons = "warn"
|
unpredictable_function_pointer_comparisons = "warn"
|
||||||
unreachable_cfg_select_predicates = "warn"
|
|
||||||
unreachable_pub = "warn"
|
unreachable_pub = "warn"
|
||||||
unsafe_code = "forbid"
|
unsafe_code = "forbid"
|
||||||
unstable_features = "forbid"
|
unstable_features = "forbid"
|
||||||
@@ -512,7 +515,9 @@ while_true = "warn"
|
|||||||
# unstable lints
|
# unstable lints
|
||||||
# default_overrides_default_fields = "deny"
|
# default_overrides_default_fields = "deny"
|
||||||
# deprecated_llvm_intrinsic = "warn"
|
# deprecated_llvm_intrinsic = "warn"
|
||||||
|
# duplicate_tools = "deny"
|
||||||
# implicit_provenance_casts = "deny"
|
# implicit_provenance_casts = "deny"
|
||||||
|
# malformed_diagnostic_filters = "warn"
|
||||||
# multiple_supertrait_upcastable = "warn"
|
# multiple_supertrait_upcastable = "warn"
|
||||||
# must_not_suspend = "warn"
|
# must_not_suspend = "warn"
|
||||||
# non_exhaustive_omitted_patterns = "warn"
|
# non_exhaustive_omitted_patterns = "warn"
|
||||||
@@ -524,6 +529,7 @@ while_true = "warn"
|
|||||||
|
|
||||||
[workspace.lints.rustdoc]
|
[workspace.lints.rustdoc]
|
||||||
bare_urls = "warn"
|
bare_urls = "warn"
|
||||||
|
broken_footnote = "warn"
|
||||||
broken_intra_doc_links = "warn"
|
broken_intra_doc_links = "warn"
|
||||||
invalid_codeblock_attributes = "warn"
|
invalid_codeblock_attributes = "warn"
|
||||||
invalid_html_tags = "warn"
|
invalid_html_tags = "warn"
|
||||||
@@ -533,6 +539,7 @@ private_doc_tests = "warn"
|
|||||||
private_intra_doc_links = "warn"
|
private_intra_doc_links = "warn"
|
||||||
redundant_explicit_links = "warn"
|
redundant_explicit_links = "warn"
|
||||||
unescaped_backticks = "warn"
|
unescaped_backticks = "warn"
|
||||||
|
unused_footnote_definition = "warn"
|
||||||
|
|
||||||
# unstable lints
|
# unstable lints
|
||||||
# missing_doc_code_examples = "warn"
|
# missing_doc_code_examples = "warn"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ example:
|
|||||||
doc *args:
|
doc *args:
|
||||||
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc \
|
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc \
|
||||||
--workspace --all-features --document-private-items \
|
--workspace --all-features --document-private-items \
|
||||||
--lib --bins --no-deps --locked \
|
--lib --no-deps --locked \
|
||||||
{{ args }}
|
{{ args }}
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
|||||||
+1097
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.98"
|
channel = "1.99"
|
||||||
|
|||||||
Reference in New Issue
Block a user