rust-analyzer/crates/hir-expand/src
Chayim Refael Friedman 9c4a7705b1 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.
2025-07-03 23:05:56 +03:00
..
builtin Fix some things with builtin derives 2025-07-03 23:05:56 +03:00
attrs.rs update to literal-escaper 0.0.4 for better API without unreachable and faster string parsing 2025-06-16 15:12:24 +03:00
builtin.rs cargo fmt 2025-03-15 21:32:01 +01:00
cfg_process.rs cargo fmt 2025-03-15 21:32:01 +01:00
change.rs Split out salsa_macros 2025-04-29 19:43:36 +02:00
db.rs Bump salsa 2025-07-03 10:05:16 +02:00
declarative.rs Cleanup cfg check handling in expression store lowering 2025-04-29 11:44:11 +02:00
eager.rs Make HirFileId, EditionedFileId and macro files Salsa struct 2025-04-19 22:10:52 +03:00
files.rs fix: Improve diagnostic ranges for macro_calls! 2025-07-03 14:12:27 +02:00
fixup.rs Remove unnecessary predefined symbol clones 2025-04-21 03:10:13 +03:00
hygiene.rs refactor: Remove unnecessary extension trait 2025-04-29 13:53:57 +02:00
inert_attr_macro.rs clarify rustc_do_not_const_check comment 2025-06-15 20:40:08 +08:00
lib.rs fix: Improve diagnostic ranges for macro_calls! 2025-07-03 14:12:27 +02:00
mod_path.rs refactor: Remove unnecessary extension trait 2025-04-29 13:53:57 +02:00
name.rs Re-enable fixpoint iteration for variance computation 2025-07-03 10:48:09 +02:00
prettify_macro_expansion_.rs Restructure proc-macro loading erros, differentiate hard error property on kind 2025-07-03 09:28:53 +02:00
proc_macro.rs Restructure proc-macro loading erros, differentiate hard error property on kind 2025-07-03 09:28:53 +02:00
span_map.rs Make HirFileId, EditionedFileId and macro files Salsa struct 2025-04-19 22:10:52 +03:00