rust/src/test/ui/const-generics
bors dd67187965 Auto merge of #67133 - oli-obk:it_must_be_a_sign, r=eddyb
Deduplicate pretty printing of constants

r? @eddyb for the pretty printing logic
cc @RalfJung
2020-03-16 16:31:23 +00:00
..
array-impls Fix use of has_infer_types 2020-03-01 21:42:34 +00:00
auxiliary Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
issues Add test for issue-67739 2020-03-13 16:06:08 +09: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 rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +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 Remove fn special casing in const printing 2020-03-12 13:35:44 +01: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-arg-type-arg-misordered.rs Move generic arg / param validation to create_substs_for_generic_args 2020-02-22 00:28:18 +00:00
const-arg-type-arg-misordered.stderr Add note regarding argument ordering 2020-02-22 11:34:29 +00: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 ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
const-fn-with-const-param.stderr ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01: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 Don't print literal type suffixes if print_ty is false 2020-03-11 09:10:49 +01:00
const-generic-type_name.stderr Print constants in type_name for const generics 2020-01-24 16:23:32 +00:00
const-param-after-const-literal-arg.rs Expand the documentation for E0747 2020-02-22 11:34:29 +00:00
const-param-before-other-params.rs Expand the documentation for E0747 2020-02-22 11:34:29 +00:00
const-param-before-other-params.stderr Add note regarding argument ordering 2020-02-22 11:34:29 +00:00
const-param-elided-lifetime.rs Added comment about behaviour. 2020-01-12 17:32:50 +13:00
const-param-elided-lifetime.stderr performed --bless of 15 ui tests affected 2020-02-07 12:44:31 -05: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 --bless --compare-mode=nll 2020-02-09 20:43:49 +01: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 --bless --compare-mode=nll 2020-02-09 20:43:49 +01: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 Normalise notes with the/is 2020-01-24 16:24:50 +00: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 rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +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 Print function pointer type for function pointer const generics 2020-03-11 09:10:49 +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 Don't print leading zeros on hex dumps constants 2020-03-11 09:10:49 +01:00
raw-ptr-const-param.stderr Reduce special casing in the const pretty printer 2020-03-11 09:10:49 +01: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