diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-07-03 23:05:56 +0300 |
|---|---|---|
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-07-03 23:05:56 +0300 |
| commit | e04574454cc4a548e43a02e5cc8639263d8e05eb (patch) | |
| tree | 4858175acbe6a141328240f849bda2770ecc1aa6 /compiler/rustc_codegen_llvm/src | |
| parent | 60a13592b739c8de3931e14f3682ceb0b9088e44 (diff) | |
| download | rust-e04574454cc4a548e43a02e5cc8639263d8e05eb.tar.gz rust-e04574454cc4a548e43a02e5cc8639263d8e05eb.zip | |
Fix some things with builtin derives
1. Err on unions on derive where it's required. 2. Err on `#[derive(Default)]` on enums without `#[default]` variant. 3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not). Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
