rust/tests/ui/const-generics
bors 5113ed28ea Auto merge of #118297 - shepmaster:warn-dead-tuple-fields, r=WaffleLapkin
Merge `unused_tuple_struct_fields` into `dead_code`

This implicitly upgrades the lint from `allow` to `warn` and places it into the `unused` lint group.

[Discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Moving.20.60unused_tuple_struct_fields.60.20from.20allow.20to.20warn)
2024-01-05 04:51:55 +00:00
..
adt_const_params Show number in error message even for one error 2023-11-24 19:15:52 +01:00
array-impls
auxiliary
backcompat
defaults update use of feature flags 2023-12-14 15:22:37 +01:00
early generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
generic_arg_infer Update std::simd usage and test outputs 2023-11-26 09:02:25 -05:00
generic_const_exprs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
infer Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issues Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
late-bound-vars Show number in error message even for one error 2023-11-24 19:15:52 +01:00
min_const_generics generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
occurs-check Show number in error message even for one error 2023-11-24 19:15:52 +01:00
parser-error-recovery Show number in error message even for one error 2023-11-24 19:15:52 +01:00
std make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
type-dependent Show number in error message even for one error 2023-11-24 19:15:52 +01:00
apit-with-const-param.rs
arg-in-pat-1.rs
arg-in-pat-2.rs
arg-in-pat-3.rs
argument_order.rs
argument_order.stderr
array-wrapper-struct-ctor.rs
assoc_const_as_type_argument.rs
assoc_const_as_type_argument.stderr
assoc_const_eq_diagnostic.rs Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc_const_eq_diagnostic.stderr Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
associated-type-bound-fail.rs
associated-type-bound-fail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-type-bound.rs
bad-const-generic-exprs.rs
bad-const-generic-exprs.stderr
bad-generic-in-copy-impl.rs
bad-generic-in-copy-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-subst-const-kind.rs
bad-subst-const-kind.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
broken-mir-1.rs
broken-mir-2.rs
cannot-infer-type-for-const-param.rs
coerce_unsized_array.rs
concrete-const-as-fn-arg.rs
concrete-const-impl-method.rs
condition-in-trait-const-arg.rs
const_trait_fn-issue-88433.rs bless tests 2023-08-06 13:34:53 +00:00
const-arg-in-const-arg.min.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
const-arg-in-const-arg.rs Fix problematic comment 2023-10-25 19:14:03 +08:00
const-arg-in-fn.rs
const-arg-type-arg-misordered.rs
const-arg-type-arg-misordered.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-argument-cross-crate-mismatch.rs
const-argument-cross-crate-mismatch.stderr
const-argument-cross-crate.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
const-argument-if-length.full.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
const-argument-if-length.min.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
const-argument-if-length.rs
const-argument-non-static-lifetime.min.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
const-argument-non-static-lifetime.rs
const-fn-with-const-param.rs
const-generic-default-wont-borrowck.rs
const-generic-default-wont-borrowck.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-generic-function.rs
const-generic-function.stderr
const-generic-type_name.rs
const-param-after-const-literal-arg.rs
const-param-before-other-params.rs
const-param-before-other-params.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-param-elided-lifetime.full.stderr
const-param-elided-lifetime.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
const-param-elided-lifetime.rs
const-param-in-async.rs
const-param-type-depends-on-const-param.full.stderr
const-param-type-depends-on-const-param.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
const-param-type-depends-on-const-param.rs
const-param-type-depends-on-type-param-ungated.rs
const-param-type-depends-on-type-param-ungated.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-param-type-depends-on-type-param.full.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-param-type-depends-on-type-param.min.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-param-type-depends-on-type-param.rs
const-param-with-additional-obligations.rs
const-param-with-additional-obligations.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-parameter-uppercase-lint.rs
const-parameter-uppercase-lint.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
core-types.rs
cross_crate_complex.rs
default-ty-closure.rs add test for #116796 2023-12-24 01:58:13 +08:00
default-ty-closure.stderr add test for #116796 2023-12-24 01:58:13 +08:00
deref-into-array-generic.rs
different_generic_args_array.rs
different_generic_args_array.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
different_generic_args.full.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
different_generic_args.min.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
different_generic_args.rs
dont-evaluate-array-len-on-err-1.rs
dont-evaluate-array-len-on-err-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dyn-supertraits.rs
ensure_is_evaluatable.rs
ensure_is_evaluatable.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
enum-variants.rs
exhaustive-value.rs
exhaustive-value.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expose-default-substs-param-env.rs
float-generic.adt_const_params.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
float-generic.rs
float-generic.simple.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn_with_two_const_inputs.rs
fn_with_two_const_inputs.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn_with_two_same_const_inputs.rs
fn-const-param-call.full.stderr
fn-const-param-call.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
fn-const-param-call.rs
fn-const-param-infer.full.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn-const-param-infer.min.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn-const-param-infer.rs
forbid-non-structural_match-types.rs
forbid-non-structural_match-types.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
foreign-item-const-parameter.rs
foreign-item-const-parameter.stderr
generic-param-mismatch.rs
generic-param-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
ice-68875.rs
ice-68875.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
ice-118285-fn-ptr-value.rs fix an ICE when a valtree failed to evaluate 2023-12-02 10:38:42 +01:00
ice-118285-fn-ptr-value.stderr fix an ICE when a valtree failed to evaluate 2023-12-02 10:38:42 +01:00
ice-const-generic-function-return-ty.rs
ice-const-generic-function-return-ty.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-const-generic-struct.rs
incorrect-number-of-const-args.rs
incorrect-number-of-const-args.stderr
infer_arg_from_pat.rs
infer_arr_len_from_pat.rs
inhabited-assoc-ty-ice-1.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
inhabited-assoc-ty-ice-2.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
integer-literal-generic-arg-in-where-clause.rs
intrinsics-type_name-as-const-argument.min.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
intrinsics-type_name-as-const-argument.rs
invalid-const-arg-for-type-param.rs
invalid-const-arg-for-type-param.stderr
invalid-constant-in-args.rs
invalid-constant-in-args.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
invalid-enum.rs
invalid-enum.stderr
invariant.rs
invariant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-46511.rs
issue-46511.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
issue-66451.rs
issue-66451.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70408.rs
issue-80471.rs
issue-80471.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93647.rs update tests, adding known-bug 2023-07-27 15:51:02 +00:00
issue-93647.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-97007.rs
issue-102124.rs
issue-105689.rs
issue-106419-struct-with-multiple-const-params.rs
issue-112505-overflow.rs
issue-112505-overflow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
legacy-const-generics-bad.rs
legacy-const-generics-bad.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
legacy-const-generics.rs
lifetime-in-const-param.rs fix: not insert missing lifetime for ConstParamTy 2023-08-08 14:48:17 +08:00
lifetime-in-const-param.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
nested-type.full.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-type.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
nested-type.rs
outer-lifetime-in-const-generic-default.rs
outer-lifetime-in-const-generic-default.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
overlapping_impls.rs
params-in-ct-in-ty-param-lazy-norm.full.stderr
params-in-ct-in-ty-param-lazy-norm.min.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
params-in-ct-in-ty-param-lazy-norm.rs
parent_generics_of_encoding_impl_trait.rs
parent_generics_of_encoding_impl_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
parent_generics_of_encoding.rs
projection-as-arg-const.rs
projection-as-arg-const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
promotion.rs
raw-ptr-const-param-deref.full.stderr
raw-ptr-const-param-deref.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
raw-ptr-const-param-deref.rs
raw-ptr-const-param.full.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
raw-ptr-const-param.min.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
raw-ptr-const-param.rs
slice-const-param-mismatch.full.stderr
slice-const-param-mismatch.min.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
slice-const-param-mismatch.rs
slice-const-param.rs add testcase that hits valtree_into_mplace with a custom DST 2023-08-06 21:25:49 +02:00
sneaky-array-repeat-expr.rs
sneaky-array-repeat-expr.stderr
struct-with-invalid-const-param.rs
struct-with-invalid-const-param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest_const_for_array.rs
suggest_const_for_array.stderr
trait-const-args.rs
transmute_no_gate.rs
transmute_no_gate.stderr
transmute-const-param-static-reference.min.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
transmute-const-param-static-reference.rs
transmute-fail.rs
transmute-fail.stderr
transmute.rs
transparent-maybeunit-array-wrapper.rs
try_unify_ignore_lifetimes.rs
two_matching_preds.rs
type_mismatch.rs
type_mismatch.stderr
type_not_in_scope.rs
type_not_in_scope.stderr
type_of_anon_const.rs
type-after-const-ok.rs
types-mismatch-const-args.full.stderr
types-mismatch-const-args.min.stderr
types-mismatch-const-args.rs
unify_with_nested_expr.rs
unify_with_nested_expr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
uninferred-consts-during-codegen-1.rs
uninferred-consts-during-codegen-2.rs
unknown_adt.rs
unknown_adt.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unused_braces.fixed
unused_braces.full.fixed
unused_braces.min.fixed
unused_braces.rs
unused_braces.stderr
unused-const-param.rs
unused-type-param-suggestion.rs
unused-type-param-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
variant-discrimiant-no-generics.full.stderr
variant-discrimiant-no-generics.min.stderr
variant-discrimiant-no-generics.rs
where-clauses.rs
wrong-normalization.rs
wrong-normalization.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00