rust/src/test/ui/cast
Matthias Krüger 2411cd7c7a
Rollup merge of #91245 - cameron1024:suggest-i32-u32-char-cast, r=nagisa
suggest casting between i/u32 and char

As discussed in https://github.com/rust-lang/rust/issues/91063 , this adds a suggestion for converting between i32/u32 <-> char with `as`, and a short explanation for why this is safe
2021-12-08 23:18:03 +01:00
..
cast-as-bool.rs Start generating AddressOf rvalues in MIR 2019-12-18 20:09:10 +00:00
cast-as-bool.stderr Start generating AddressOf rvalues in MIR 2019-12-18 20:09:10 +00:00
cast-char.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-char.stderr Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-does-fallback.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-errors-issue-43825.rs
cast-errors-issue-43825.stderr Update tests 2019-03-11 23:10:26 +03:00
cast-from-nil.rs
cast-from-nil.stderr Tweak "non-primitive cast" error 2020-06-15 08:57:20 -07:00
cast-int-to-char.rs suggest cast char -> int 2021-11-28 21:46:53 +00:00
cast-int-to-char.stderr suggest cast char -> int 2021-11-28 21:46:53 +00:00
cast-region-to-uint.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-rfc0401-2.rs
cast-rfc0401-2.stderr provide suggestion for invalid boolean cast 2019-01-09 16:59:12 -05:00
cast-rfc0401-vtable-kinds.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-rfc0401.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-to-bare-fn.rs
cast-to-bare-fn.stderr Tweak "non-primitive cast" error 2020-06-15 08:57:20 -07:00
cast-to-infer-ty.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
cast-to-nil.rs
cast-to-nil.stderr Tweak "non-primitive cast" error 2020-06-15 08:57:20 -07:00
cast-to-unsized-trait-object-suggestion.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
cast-to-unsized-trait-object-suggestion.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
cast.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
casts-differing-anon.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
casts-differing-anon.stderr Fixup test outputs 2021-11-20 17:07:42 -08:00
casts-issue-46365.rs Move cast-related tests 2020-12-31 08:05:46 +09:00
casts-issue-46365.stderr Move cast-related tests 2020-12-31 08:05:46 +09:00
codegen-object-shim.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
fat-ptr-cast-rpass.rs Remove the deprecated core::raw and std::raw module. 2021-07-03 14:03:27 +08:00
fat-ptr-cast.rs move a bunch of tests 2021-01-28 18:42:44 +01:00
fat-ptr-cast.stderr move a bunch of tests 2021-01-28 18:42:44 +01:00
issue-17444.rs move a bunch of tests 2021-01-28 18:42:44 +01:00
issue-17444.stderr move a bunch of tests 2021-01-28 18:42:44 +01:00
issue-84213.fixed Warn about unused pub fields in non-pub structs 2021-05-15 13:06:17 +02:00
issue-84213.rs Warn about unused pub fields in non-pub structs 2021-05-15 13:06:17 +02:00
issue-84213.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
issue-85586.rs Use more precise span for E0282 in cast expressions 2021-06-10 14:08:57 +02:00
issue-85586.stderr Use more precise span for E0282 in cast expressions 2021-06-10 14:08:57 +02:00
issue-88621.rs Disallow non-c-like but "fieldless" ADTs from being casted to integer... 2021-12-01 19:59:15 +00:00
issue-88621.stderr Disallow non-c-like but "fieldless" ADTs from being casted to integer... 2021-12-01 19:59:15 +00:00
issue-89497.fixed Fix suggestion to borrow when casting from pointer to reference 2021-10-04 21:15:02 +02:00
issue-89497.rs Fix suggestion to borrow when casting from pointer to reference 2021-10-04 21:15:02 +02:00
issue-89497.stderr Fix suggestion to borrow when casting from pointer to reference 2021-10-04 21:15:02 +02:00
supported-cast.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
unsupported-cast.rs move a bunch of tests 2021-01-28 18:42:44 +01:00
unsupported-cast.stderr move a bunch of tests 2021-01-28 18:42:44 +01:00