rust/tests
Jacob Pratt fb6977c126
Rollup merge of #142131 - estebank:cast-sugg, r=Urgau
Make cast suggestions verbose

```
error[E0604]: only `u8` can be cast as `char`, not `u32`
  --> $DIR/E0604.rs:2:5
   |
LL |     1u32 as char;
   |     ^^^^^^^^^^^^ invalid cast
   |
help: try `char::from_u32` instead
   |
LL -     1u32 as char;
LL +     char::from_u32(1u32);
   |
```

```
error[E0620]: cast to unsized type: `&[u8]` as `[char]`
  --> $DIR/cast-to-slice.rs:6:5
   |
LL |     arr as [char];
   |     ^^^^^^^^^^^^^
   |
help: try casting to a reference instead
   |
LL |     arr as &[char];
   |            +
```

```
error[E0620]: cast to unsized type: `Box<{integer}>` as `dyn Send`
  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
   |
LL |     Box::new(1) as dyn Send;
   |     ^^^^^^^^^^^^^^^^^^^^^^^
   |
help: you can cast to a `Box` instead
   |
LL |     Box::new(1) as Box<dyn Send>;
   |                    ++++        +
```

Part of rust-lang/rust#141973.
2025-06-07 07:05:48 +02:00
..
assembly Add compiler tests for xray 2025-05-26 00:39:23 +08:00
auxiliary stabilize naked_functions 2025-04-20 11:18:38 +02:00
codegen x86 (32/64): go back to passing SIMD vectors by-ptr 2025-06-04 08:38:49 +02:00
codegen-units Remove mono item collection strategy override from -Zprint-mono-items 2025-05-09 12:19:09 +02:00
coverage coverage: Revert "unused local file IDs" due to empty function names 2025-05-27 23:33:29 +10:00
coverage-run-rustdoc Update coverage-run-rustdoc output 2025-03-28 10:35:53 +01:00
crashes Rollup merge of #141932 - azhogin:azhogin/async-drop-inside-asyncgen-fix, r=oli-obk 2025-06-04 19:50:21 +02:00
debuginfo Rollup merge of #138285 - beetrees:repr128-stable, r=traviscross,bjorn3 2025-05-29 04:50:46 +02:00
incremental Add a test to reproduce ICE 2025-06-03 20:56:45 +00:00
mir-opt Auto merge of #139118 - scottmcm:slice-get-unchecked-intrinsic, r=workingjubilee 2025-05-31 21:38:21 +00:00
pretty Update generic tests 2025-05-21 07:24:43 +00:00
run-make Rollup merge of #141538 - folkertdev:systemv-x86_64-va_arg, r=workingjubilee 2025-05-30 07:01:30 +02:00
rustdoc Support middle::ty assoc const eq predicates again 2025-06-05 19:19:18 +02:00
rustdoc-gui Rollup merge of #139831 - lolbinarycat:rustdoc-mobile-sidebar, r=GuillaumeGomez 2025-05-25 04:00:55 +02:00
rustdoc-js yeet CanonicalVarInfo 2025-05-23 12:10:53 +00:00
rustdoc-js-std Consistent trait bounds for ExtractIf Debug impls 2025-05-05 19:46:46 -07:00
rustdoc-json Stabilise repr128 2025-05-28 15:14:34 +01:00
rustdoc-ui Rollup merge of #141698 - oli-obk:ctfe-err-flip, r=RalfJung 2025-06-03 21:53:37 +02:00
ui Rollup merge of #142131 - estebank:cast-sugg, r=Urgau 2025-06-07 07:05:48 +02:00
ui-fulldeps remove visit_clobber and move DummyAstNode to rustc_expand 2025-05-29 12:46:26 +08:00
COMPILER_TESTS.md