os-rust/tests
Matthias Krüger 3fa9be9094
Rollup merge of #106665 - JulianKnodt:better_fn_trait_note, r=cjgillot
Add note when `FnPtr` vs. `FnDef` impl trait

I encountered an instance where an `FnPtr` implemented a trait, but I was passing an `FnDef`. I was confused for an hour and to examine the source code of the trait's crate's tests in order to understand how to cast it properly (it didn't help that it was behind a reference). To the end user, it might not be immediately obvious that they are different and how to convert from an `FnDef` to an `FnPtr`, but it is necessary to cast to the generic function in order to compile. It is thus useful to suggest `as` in the help note, (even if the `Fn` output implements the trait).
2023-01-14 13:04:25 +01:00
..
assembly Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
codegen Stabilize abi_efiapi feature 2023-01-11 20:42:13 -05:00
codegen-units Move /src/test to /tests 2023-01-11 09:32:08 +00:00
debuginfo Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incremental Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mir-opt Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
pretty Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make-fulldeps Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwco 2023-01-13 07:45:34 +00:00
run-pass-valgrind Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc Rollup merge of #106819 - notriddle:notriddle/rm-h1-fqn, r=GuillaumeGomez 2023-01-14 12:04:37 +09:00
rustdoc-gui Rollup merge of #106819 - notriddle:notriddle/rm-h1-fqn, r=GuillaumeGomez 2023-01-14 12:04:37 +09:00
rustdoc-js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-js-std Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-json Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-ui Rollup merge of #106566 - clubby789:contiguous-weird-unicode, r=cjgillot 2023-01-14 13:04:24 +01:00
ui Rollup merge of #106665 - JulianKnodt:better_fn_trait_note, r=cjgillot 2023-01-14 13:04:25 +01:00
ui-fulldeps Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk 2023-01-13 05:04:48 +00:00
COMPILER_TESTS.md Move /src/test to /tests 2023-01-11 09:32:08 +00:00