rust/tests/ui/deriving
Matthias Krüger 19437666d9
Rollup merge of #141724 - Sol-Ell:issue-141141-fix, r=nnethercote
fix(#141141): When expanding `PartialEq`, check equality of scalar types first.

Fixes rust-lang/rust#141141.

Now, `cs_eq` function of `partial_eq.rs` compares [scalar types](https://doc.rust-lang.org/rust-by-example/primitives.html#scalar-types) first.

- Add `is_scalar` field to `FieldInfo`.
- Add `is_scalar` method to `TyKind`.
- Pass `FieldInfo` via `CsFold::Combine` and refactor code relying on it.
- Implement `TryFrom<&str>` and `TryFrom<Symbol>` for FloatTy.
- Implement `TryFrom<&str>` and `TryFrom<Symbol>` for IntTy.
- Implement `TryFrom<&str>` and `TryFrom<Symbol>` for UintTy.
2025-06-03 15:00:32 +02: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 annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
coerce-pointee-bounds-issue-127647.rs
derive-no-std.rs
derive-partialord-correctness.rs
deriving-all-codegen.rs Separately check equality of the scalar types and compound types in the order of declaration. 2025-06-02 15:29:34 +03:00
deriving-all-codegen.stdout Separately check equality of the scalar types and compound types in the order of declaration. 2025-06-02 15:29:34 +03:00
deriving-associated-types.rs
deriving-bounds.rs
deriving-clone-array.rs
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
deriving-cmp-generic-struct-enum.rs
deriving-cmp-generic-struct.rs
deriving-cmp-generic-tuple-struct.rs
deriving-cmp-shortcircuit.rs
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 annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02: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
deriving-copyclone.rs
deriving-default-box.rs
deriving-default-enum.rs
deriving-enum-single-variant.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
deriving-eq-ord-boxed-slice.rs
deriving-hash.rs
deriving-in-fn.rs
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
deriving-show-2.rs
deriving-show.rs
deriving-via-extension-c-enum.rs
deriving-via-extension-enum.rs
deriving-via-extension-hash-enum.rs
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
deriving-via-extension-struct-like-enum-variant.rs
deriving-via-extension-struct-tuple.rs
deriving-via-extension-struct.rs
deriving-via-extension-type-params.rs
deriving-with-helper.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
deriving-with-repr-packed.rs
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
issue-6341.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-15689-1.rs
issue-15689-2.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-18738.rs
issue-19358.rs
issue-58319.rs
issue-89188-gat-hrtb.rs
issue-103157.rs
issue-103157.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
multiple-defaults.rs
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 annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00