rust/tests/ui/derives
Gurinder Singh 4b3ece475d Emit explanatory note for move errors in packed struct derives
Derive expansions for packed structs cause move errors because
they prefer copying over borrowing since borrowing the fields of a
packed struct can result in unaligned access and therefore undefined
behaviour.

This underlying cause of the errors, however, is not apparent
to the user. We add a diagnostic note here to remedy that.
2023-11-03 07:32:10 +05:30
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
clone-debug-dead-code-in-the-same-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
clone-debug-dead-code-in-the-same-struct.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
clone-debug-dead-code.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
clone-debug-dead-code.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-assoc-type-not-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-assoc-type-not-impl.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derive-deadlock.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-deadlock.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-Debug-use-ufcs-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-Debug-use-ufcs-tuple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-hygiene.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-macro-const-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-marker-tricky.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-multiple-with-packed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-on-trait-item-or-impl-item.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-on-trait-item-or-impl-item.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-partial-ord.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derive-renamed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Clone-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Clone-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Clone-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Clone-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Clone-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Clone-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Clone-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Clone-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Debug-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Debug-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Debug-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Debug-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Debug-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Debug-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Debug-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Debug-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Default-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Default-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Default-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Default-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Eq-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Eq-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Eq-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Eq-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Eq-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Eq-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Eq-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Eq-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Hash-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Hash-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Hash-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Hash-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Hash-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Hash-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Hash-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Hash-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Ord-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Ord-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Ord-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Ord-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Ord-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Ord-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-Ord-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-Ord-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-PartialEq-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialEq-enum-struct-variant.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
derives-span-PartialEq-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialEq-enum.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
derives-span-PartialEq-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialEq-struct.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
derives-span-PartialEq-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialEq-tuple-struct.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
derives-span-PartialOrd-enum-struct-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialOrd-enum-struct-variant.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-PartialOrd-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialOrd-enum.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-PartialOrd-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialOrd-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derives-span-PartialOrd-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
derives-span-PartialOrd-tuple-struct.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
deriving-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-bounds.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
deriving-copyclone.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-copyclone.stderr Point at specific field in struct literal when trait fulfillment fails 2023-01-23 13:37:58 -08:00
deriving-meta-empty-trait-list.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-meta-unknown-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-meta-unknown-trait.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
deriving-no-inner-impl-error-message.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-no-inner-impl-error-message.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
deriving-non-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-non-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-primitive.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deriving-primitive.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
deriving-with-repr-packed-2.rs make unaligned_reference a hard error 2023-01-31 20:28:11 +01:00
deriving-with-repr-packed-2.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
deriving-with-repr-packed-move-errors.rs Emit explanatory note for move errors in packed struct derives 2023-11-03 07:32:10 +05:30
deriving-with-repr-packed-move-errors.stderr Emit explanatory note for move errors in packed struct derives 2023-11-03 07:32:10 +05:30
deriving-with-repr-packed.rs Extend BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE. 2023-02-09 11:47:12 +11:00
deriving-with-repr-packed.stderr Emit explanatory note for move errors in packed struct derives 2023-11-03 07:32:10 +05:30
issue-36617.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36617.stderr Tweak suggestion spans for invalid crate-level inner attribute 2023-10-26 18:35:09 +00:00
issue-43023.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-43023.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91492.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91492.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
issue-91550.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91550.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
issue-97343.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-97343.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00