about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2025-07-03 23:05:56 +0300
committerChayim Refael Friedman <chayimfr@gmail.com>2025-07-03 23:05:56 +0300
commite04574454cc4a548e43a02e5cc8639263d8e05eb (patch)
tree4858175acbe6a141328240f849bda2770ecc1aa6 /compiler/rustc_errors/src/snippet.rs
parent60a13592b739c8de3931e14f3682ceb0b9088e44 (diff)
downloadrust-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_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions