rust/compiler/rustc_builtin_macros
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
..
src Rollup merge of #141724 - Sol-Ell:issue-141141-fix, r=nnethercote 2025-06-03 15:00:32 +02:00
Cargo.toml Do not get proc_macro from the sysroot in rustc 2025-05-27 15:49:28 +00:00
messages.ftl Rollup merge of #140697 - Sa4dUs:split-autodiff, r=ZuseZ4 2025-05-28 10:28:08 -04:00