rust/tests/ui/deriving
Jonathan Brouwer d86afd2ec0
Rollup merge of #151476 - nnethercote:no-unit-ret-ty-in-derive, r=Kobzol
Avoid `-> ()` in derived functions.

`hash` and `assert_receiver_is_total_eq` have no return type. This commit removes the `-> ()` that is currently printed for them.

r? @Kobzol
2026-01-22 13:35:44 +01:00
..
auxiliary Remove let_chains feature gate from even more tests 2025-04-18 15:57:29 +02:00
built-in-proc-macro-scope.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
built-in-proc-macro-scope.stdout Explicitly export core and std macros 2026-01-13 08:47:48 +01:00
coerce-pointee-bounds-issue-127647.rs s/SmartPointer/CoerceReferent/g 2024-10-24 02:14:09 +08:00
derive-no-std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
derive-partialord-correctness.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-all-codegen.rs Document (and test) a problem with Clone/Copy deriving. 2025-11-11 11:35:10 +11:00
deriving-all-codegen.stdout Avoid -> () in derived functions. 2026-01-22 14:13:55 +11:00
deriving-associated-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-clone-array.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-clone-enum.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-clone-generic-enum.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-clone-generic-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-clone-generic-tuple-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-clone-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-clone-tuple-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-cmp-generic-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-cmp-generic-struct-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-cmp-generic-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-cmp-generic-tuple-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-cmp-shortcircuit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-coerce-pointee-expanded.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
deriving-coerce-pointee-expanded.stdout Explicitly export core and std macros 2026-01-13 08:47:48 +01:00
deriving-coerce-pointee-neg.rs Deduplicate CoerceUnsized and DispatchFromDyn impl errors 2025-02-24 19:34:54 +00:00
deriving-coerce-pointee-neg.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
deriving-coerce-pointee.rs s/SmartPointer/CoerceReferent/g 2024-10-24 02:14:09 +08:00
deriving-copyclone.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-default-box.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-default-enum.rs Detect unused structs which derived Default 2024-06-25 23:29:44 +08:00
deriving-enum-single-variant.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-eq-ord-boxed-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-from-wrong-target.rs Avoid using () in derive(From) output. 2025-08-19 18:16:57 +10:00
deriving-from-wrong-target.stderr Avoid using () in derive(From) output. 2025-08-19 18:16:57 +10:00
deriving-from.rs Remove the From derive macro from prelude 2025-08-18 13:12:19 +02:00
deriving-hash.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-in-fn.rs Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
deriving-in-macro.rs Refactor the two-phase check for impls and impl items 2025-05-27 22:03:21 +08:00
deriving-meta-multiple.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-meta.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-self-lifetime-totalord-totaleq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-show-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-show.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-c-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-hash-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-hash-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-via-extension-struct-empty.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-struct-like-enum-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-struct-tuple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-via-extension-type-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deriving-with-helper.rs compiletest: rename add-core-stubs to add-minicore 2025-11-02 16:20:06 +01:00
deriving-with-repr-packed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
do-not-suggest-calling-fn-in-derive-macro.rs Skip suggestions in derived code 2025-01-24 22:08:39 +00:00
do-not-suggest-calling-fn-in-derive-macro.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-3935.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-6341.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-15689-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-15689-2.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-18738.rs Move tests 2024-03-03 16:30:48 -03:00
issue-19358.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-58319.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89188-gat-hrtb.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103157.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103157.stderr Ignore #[doc(hidden)] items when computing trimmed paths 2026-01-19 12:27:27 +11:00
multiple-defaults.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
multiple-defaults.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
proc-macro-attribute-mixing.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
proc-macro-attribute-mixing.stdout Explicitly export core and std macros 2026-01-13 08:47:48 +01:00