rust/tests/ui/cast
Jacob Pratt 60c76b9dfd
Rollup merge of #138962 - xizheyin:issue-138836, r=compiler-errors
Expect an array when expected and acutal types are both arrays during cast

Closes #138836
2025-04-13 17:37:52 -04:00
..
cast_lit_suffix-issue-138392.fixed Use lit span when suggesting suffix lit cast 2025-03-14 20:44:49 +08:00
cast_lit_suffix-issue-138392.rs Use lit span when suggesting suffix lit cast 2025-03-14 20:44:49 +08:00
cast_lit_suffix-issue-138392.stderr Use lit span when suggesting suffix lit cast 2025-03-14 20:44:49 +08:00
cast-array-issue-138836.rs Expect an array when expected and acutal types are both arrays during cast 2025-03-27 13:05:18 +08:00
cast-array-issue-138836.stderr Expect an array when expected and acutal types are both arrays during cast 2025-03-27 13:05:18 +08:00
cast-as-bool.rs compiletest: Trim the value of dont-require-annotations 2025-04-10 23:48:57 +03:00
cast-as-bool.stderr compiletest: Make SUGGESTION annotations viral 2025-04-10 23:48:57 +03:00
cast-char.rs
cast-char.stderr
cast-does-fallback.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-errors-issue-43825.rs
cast-errors-issue-43825.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cast-from-nil.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cast-from-nil.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cast-int-to-char.rs
cast-int-to-char.stderr
cast-macro-lhs.rs
cast-macro-lhs.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cast-pointee-projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-region-to-uint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-rfc0401-2.rs
cast-rfc0401-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
cast-rfc0401-vtable-kinds.rs Delete tuple unsizing 2025-02-27 10:26:33 +00:00
cast-rfc0401-vtable-kinds.stderr Delete tuple unsizing 2025-02-27 10:26:33 +00:00
cast-rfc0401.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-to-bare-fn.rs
cast-to-bare-fn.stderr
cast-to-infer-ty.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-to-nil.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cast-to-nil.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cast-to-slice.rs fix: diagnostic for casting reference to slice 2023-12-20 20:50:32 -05:00
cast-to-slice.stderr Update existing tests 2023-12-20 22:53:56 -05:00
cast-to-unsized-trait-object-suggestion.rs
cast-to-unsized-trait-object-suggestion.stderr
cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
casts-differing-anon.rs
casts-differing-anon.stderr improve errors for invalid pointer casts 2024-09-24 23:12:02 +02:00
casts-issue-46365.rs
casts-issue-46365.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
codegen-object-shim.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-tails-need-normalization.rs Normalize when equating dyn tails in MIR borrowck 2024-08-05 14:28:06 -04:00
enum-to-numeric-cast.rs Emit more specific diagnostics when enums fail to cast with as 2024-02-09 09:19:44 +05:30
enum-to-numeric-cast.stderr Emit more specific diagnostics when enums fail to cast with as 2024-02-09 09:19:44 +05:30
fat-ptr-cast-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fat-ptr-cast-rpass.stderr Update tests 2024-02-07 10:42:01 +08:00
fat-ptr-cast.rs
fat-ptr-cast.stderr Use wide pointers consistenly across the compiler 2024-10-04 14:06:48 +02:00
ice-cast-type-with-error-124848.rs FIx ICE while casting a type with error 2024-05-11 08:24:26 +05:30
ice-cast-type-with-error-124848.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
issue-10991.rs
issue-10991.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-17444.rs
issue-17444.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-84213.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84213.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84213.stderr
issue-85586.rs
issue-85586.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-88621.rs
issue-88621.stderr Emit more specific diagnostics when enums fail to cast with as 2024-02-09 09:19:44 +05:30
issue-89497.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89497.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89497.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-106883-is-empty.rs
issue-106883-is-empty.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
ptr-to-ptr-different-regions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-to-trait-obj-add-auto.rs Make ptr_cast_add_auto_to_object lint into hard error 2025-02-22 23:03:14 +00:00
ptr-to-trait-obj-add-auto.stderr Make ptr_cast_add_auto_to_object lint into hard error 2025-02-22 23:03:14 +00:00
ptr-to-trait-obj-add-super-auto.rs Allow casting *mut dyn T->*mut (dyn T + Send) if T has Send super trait 2024-07-07 20:07:01 +02:00
ptr-to-trait-obj-different-args.rs improve errors for invalid pointer casts 2024-09-24 23:12:02 +02:00
ptr-to-trait-obj-different-args.stderr improve errors for invalid pointer casts 2024-09-24 23:12:02 +02:00
ptr-to-trait-obj-different-regions-id-trait.current.stderr use more accurate spans for user type ascriptions 2024-09-24 22:20:42 +02:00
ptr-to-trait-obj-different-regions-id-trait.next.stderr use more accurate spans for user type ascriptions 2024-09-24 22:20:42 +02:00
ptr-to-trait-obj-different-regions-id-trait.rs Normalize struct tail properly in borrowck and hir typeck 2024-08-11 19:40:03 -04:00
ptr-to-trait-obj-different-regions-lt-ext.rs Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
ptr-to-trait-obj-different-regions-lt-ext.stderr best_blame_constraint: prioritize blaming interesting-seeming constraints 2025-01-06 16:12:11 -08:00
ptr-to-trait-obj-different-regions-misc.rs best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
ptr-to-trait-obj-different-regions-misc.stderr best_blame_constraint: prioritize blaming interesting-seeming constraints 2025-01-06 16:12:11 -08:00
ptr-to-trait-obj-drop-principal.rs elaborate why dropping principal in *dyn casts is non-trivial 2024-10-20 17:54:04 +02:00
ptr-to-trait-obj-drop-principal.stderr elaborate why dropping principal in *dyn casts is non-trivial 2024-10-20 17:54:04 +02:00
ptr-to-trait-obj-ok.rs borrowck: use subtyping instead of equality for ptr-to-ptr casts 2024-09-27 21:04:32 +02:00
ptr-to-trait-obj-wrap-upcast.rs Actually check that the traits are the same for casting pointers to dyn _ 2024-07-04 17:56:09 +02:00
ptr-to-trait-obj-wrap-upcast.stderr improve errors for invalid pointer casts 2024-09-24 23:12:02 +02:00
supported-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized-struct-cast.rs
unsized-struct-cast.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsized-union-ice.rs add test for casting pointer to union with unsized tail 2024-03-19 13:57:31 +01:00
unsized-union-ice.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
unsupported-cast.rs
unsupported-cast.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00