rust/src/test/ui/const-generics
2020-01-24 16:23:32 +00:00
..
array-impls review comments 2020-01-16 09:49:13 -08:00
auxiliary Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
issues Rollup merge of #67543 - JohnTitor:regression-tests, r=Centril 2019-12-24 04:39:55 +01:00
apit-with-const-param.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
apit-with-const-param.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
array-size-in-generic-struct-param.rs Make TooGeneric error in WF checking a proper error 2020-01-21 01:03:15 +00:00
array-size-in-generic-struct-param.stderr Make TooGeneric error in WF checking a proper error 2020-01-21 01:03:15 +00:00
array-wrapper-struct-ctor.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
array-wrapper-struct-ctor.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
broken-mir-1.rs Add broken MIR regression tests 2019-05-28 21:35:20 +01:00
broken-mir-1.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
broken-mir-2.rs Use const generics for array impls, restricted to 0..=32 2019-07-07 11:31:38 -07:00
broken-mir-2.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
cannot-infer-const-args.rs Add a test for const args that cannot be inferred 2019-05-01 23:11:20 +01:00
cannot-infer-const-args.stderr Add more context for type parameters 2019-12-11 17:18:43 -08:00
cannot-infer-type-for-const-param.rs Update error annotations in tests that successfully compile 2019-11-02 10:28:29 +01:00
cannot-infer-type-for-const-param.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
concrete-const-as-fn-arg.rs Add tests for concrete const types 2019-05-08 20:35:41 +12:00
concrete-const-as-fn-arg.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
concrete-const-impl-method.rs Add tests for concrete const types 2019-05-08 20:35:41 +12:00
concrete-const-impl-method.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
condition-in-trait-const-arg.rs Allow true and false in const generic arguments 2019-06-03 09:59:45 +01:00
condition-in-trait-const-arg.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-arg-in-fn.rs Add a test for const arguments 2019-05-01 23:11:19 +01:00
const-arg-in-fn.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-argument-cross-crate-mismatch.rs Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
const-argument-cross-crate-mismatch.stderr Remove E0308 note when primary label has all info 2019-11-18 11:03:03 -08:00
const-argument-cross-crate.rs Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
const-expression-parameter.rs token::LArrow can begin arguments 2019-05-06 17:00:01 +01:00
const-expression-parameter.stderr Remove "here" from "expected one of X here" 2019-11-06 17:26:20 -08:00
const-fn-with-const-param.rs Update const generics tests 2019-03-05 22:20:01 +00:00
const-fn-with-const-param.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-generic-array-wrapper.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
const-generic-array-wrapper.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-generic-type_name.rs Print constants in type_name for const generics 2020-01-24 16:23:32 +00:00
const-generic-type_name.stderr Print constants in type_name for const generics 2020-01-24 16:23:32 +00:00
const-param-before-other-params.rs --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-param-before-other-params.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-param-elided-lifetime.rs Added comment about behaviour. 2020-01-12 17:32:50 +13:00
const-param-elided-lifetime.stderr Update test benchmark file 2020-01-12 20:41:03 +13:00
const-param-from-outer-fn.rs Update const generics tests 2019-03-05 22:20:01 +00:00
const-param-from-outer-fn.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-param-in-trait-ungated.rs Add tests 2019-05-04 14:39:43 +01:00
const-param-in-trait-ungated.stderr Revert "pre-expansion gate const_generics" 2019-10-31 19:08:12 +02:00
const-param-in-trait.rs Add tests 2019-05-04 14:39:43 +01:00
const-param-in-trait.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
const-param-type-depends-on-type-param-ungated.rs Remove "type parameter depends on const parameter" error from resolution 2019-10-22 12:26:32 +01:00
const-param-type-depends-on-type-param-ungated.stderr Revert "pre-expansion gate const_generics" 2019-10-31 19:08:12 +02:00
const-param-type-depends-on-type-param.rs Remove "type parameter depends on const parameter" error from resolution 2019-10-22 12:26:32 +01:00
const-param-type-depends-on-type-param.stderr Use E0741 for structural match error 2019-10-22 12:28:23 +01:00
const-parameter-uppercase-lint.rs Update const generics tests 2019-03-05 22:20:01 +00:00
const-parameter-uppercase-lint.stderr Bring attention to suggestions when the only difference is capitalization 2019-10-13 21:48:39 -07:00
const-types.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
const-types.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
derive-debug-array-wrapper.rs Use const generics for array impls, restricted to 0..=32 2019-07-07 11:31:38 -07:00
derive-debug-array-wrapper.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
fn-const-param-call.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
fn-const-param-call.stderr Gate use of raw and function pointers in const generics behind 2019-10-09 05:10:00 +13:00
fn-const-param-infer.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
fn-const-param-infer.stderr Indicate origin of where type parameter for uninferred types 2019-12-14 11:10:21 +01:00
fn-taking-const-generic-array.rs Add a test for a function taking a const param array as an argument 2019-05-28 21:34:42 +01:00
fn-taking-const-generic-array.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
forbid-non-structural_match-types.rs Forbid non-structural_match types in const generics 2019-10-22 12:26:32 +01:00
forbid-non-structural_match-types.stderr Use E0741 for structural match error 2019-10-22 12:28:23 +01:00
foreign-item-const-parameter.rs Correct the polymorphic extern fn error for const parameters 2019-09-10 22:30:46 +01:00
foreign-item-const-parameter.stderr Make wording less confusing 2019-09-11 00:29:35 +01:00
impl-const-generic-struct.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
impl-const-generic-struct.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
incorrect-number-of-const-args.rs Add a test for incorrect numbers of const args 2019-05-01 23:11:19 +01:00
incorrect-number-of-const-args.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
integer-literal-generic-arg-in-where-clause.rs Add regression test for integer literals in generic arguments in where clauses 2020-01-17 16:09:22 +00:00
integer-literal-generic-arg-in-where-clause.stderr Add regression test for integer literals in generic arguments in where clauses 2020-01-17 16:09:22 +00:00
invalid-const-arg-for-type-param.rs Add a test for invalid const arguments 2019-05-10 20:53:35 +01:00
invalid-const-arg-for-type-param.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
invalid-constant-in-args.rs Add a test for invalid const arguments 2019-03-07 23:39:01 +00:00
invalid-constant-in-args.stderr Update tests 2019-03-11 23:10:26 +03:00
mut-ref-const-param-array.rs Fix unwrapping usize issue in HasMutInterior 2019-05-31 01:19:59 +01:00
mut-ref-const-param-array.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
raw-ptr-const-param-deref.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
raw-ptr-const-param-deref.stderr Gate use of raw and function pointers in const generics behind 2019-10-09 05:10:00 +13:00
raw-ptr-const-param.rs Refactor pretty print const to use a big match statement 2019-10-09 05:10:00 +13:00
raw-ptr-const-param.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
slice-const-param-mismatch.rs Add a couple more test cases, including non-ascii strings. 2019-09-29 08:39:48 +13:00
slice-const-param-mismatch.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
slice-const-param.rs Add a couple more test cases, including non-ascii strings. 2019-09-29 08:39:48 +13:00
slice-const-param.stderr Added test for mismatched slices, and byte slices. 2019-09-28 15:07:22 +12:00
struct-with-invalid-const-param.rs Fix ICE with const generic param in struct 2019-03-22 01:49:42 +00:00
struct-with-invalid-const-param.stderr Point at local similarly named element and tweak references to variants 2019-10-27 11:50:43 -07:00
transparent-maybeunit-array-wrapper.rs Fix unwrapping usize issue with transparent MaybeUnit array wrapper 2019-06-02 01:50:06 +01:00
transparent-maybeunit-array-wrapper.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
types-mismatch-const-args.rs Test diagnostic output of type mismatches for types that have const 2019-10-07 20:39:08 +13:00
types-mismatch-const-args.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
uninferred-consts-during-codegen-1.rs test: const-generics: Update tests removing unrequired braces 2019-11-18 17:23:22 -05:00
uninferred-consts-during-codegen-1.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
uninferred-consts-during-codegen-2.rs Use assert_eq! instead of println! in tests 2019-05-28 21:35:20 +01:00
uninferred-consts-during-codegen-2.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00
unused-const-param.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
unused-const-param.stderr --bless tests due to INCOMPLETE_FEATURES being a lint. 2019-07-30 10:43:32 +02:00