summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving/generic
AgeCommit message (Expand)AuthorLines
2023-01-19Add enum for fieldless unificationclubby789-29/+61
2022-12-28Rename `Rptr` to `Ref` in AST and HIRNilstrieb-1/+1
2022-12-06`rustc_builtin_macros`: remove `ref` patternsMaybe Waffle-31/+26
2022-11-29Avoid more `MetaItem`-to-`Attribute` conversions.Nicholas Nethercote-1/+1
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-6/+6
2022-11-21Streamline deriving on packed structs.Nicholas Nethercote-70/+24
2022-11-15Rollup merge of #104391 - nnethercote:deriving-cleanups, r=jackh726Matthias Krüger-38/+31
2022-11-14Remove TraitDef::generics.Nicholas Nethercote-26/+26
2022-11-14Remove `addr_of` argument from `create_struct_pattern_fields`.Nicholas Nethercote-9/+3
2022-11-14Clarify `expand_struct_method_body`.Nicholas Nethercote-4/+3
2022-11-12Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obkDylan DPC-2/+4
2022-10-10Rename AssocItemKind::TyAlias to AssocItemKind::TypeMichael Goulet-1/+1
2022-10-06Auto merge of #99324 - reez12g:issue-99144, r=jyn514bors-0/+5
2022-10-03Rollup merge of #101040 - danielhenrymantilla:no-bounds-for-default-annotated...Matthias Krüger-1/+5
2022-09-29Fix docs in compiler/rustc_builtin_macros/src/deriving/generic/mod.rsreez12g-0/+5
2022-09-20Add the `#[derive_const]` attributeDeadbeef-2/+4
2022-09-05Fix `#[derive(Default)]` on a generic `#[default]` enum adding unnecessary `D...Daniel Henry-Mantilla-1/+5
2022-09-02Refactor and re-use BindingAnnotationCameron Steffen-12/+16
2022-09-01Auto merge of #100869 - nnethercote:replace-ThinVec, r=spastorinobors-8/+6
2022-08-29Replace `rustc_data_structures::thin_vec::ThinVec` with `thin_vec::ThinVec`.Nicholas Nethercote-8/+6
2022-08-28Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillotbors-2/+1
2022-08-22Use `AttrVec` in more places.Nicholas Nethercote-3/+3
2022-08-18Auto merge of #98655 - nnethercote:dont-derive-PartialEq-ne, r=dtolnaybors-16/+0
2022-08-17Remove `attrs` arg from `typaram` and `mk_ty_param`.Nicholas Nethercote-4/+3
2022-08-17Remove `TraitDef::attributes`.Nicholas Nethercote-6/+2
2022-08-16Remove `{ast,hir}::WhereEqPredicate::id`.Nicholas Nethercote-5/+1
2022-08-13avoid cloning and then iteratingKaDiWa-2/+1
2022-08-11Simplify `rustc_ast::visit::Visitor::visit_poly_trait_ref`.Nicholas Nethercote-6/+2
2022-08-01Don't derive `PartialEq::ne`.Nicholas Nethercote-16/+0
2022-07-18Don't add attribute to allow unused-qualifications to derive impl'sSamrat Man Singh-9/+1
2022-07-13Use `&{self.x}` for packed `Copy` structs.Nicholas Nethercote-19/+33
2022-07-11Handle tags better.Nicholas Nethercote-158/+150
2022-07-11Move the no-variants handling code earlier in `expand_enum_method_body`.Nicholas Nethercote-5/+6
2022-07-11Avoid some unnecessary blocks in derive output.Nicholas Nethercote-0/+8
2022-07-11Rename tag-related things.Nicholas Nethercote-23/+20
2022-07-11Remove unnecessary `&*` sigil pairs in derived code.Nicholas Nethercote-16/+32
2022-07-11Remove unnecessary sigils and `ref`s in derived code.Nicholas Nethercote-89/+55
2022-07-11Remove `mutbl` argument from `create_struct_patterns`.Nicholas Nethercote-4/+1
2022-07-09Minor updates based on review comments.Nicholas Nethercote-15/+10
2022-07-09Simplify `cs_fold`.Nicholas Nethercote-39/+44
2022-07-09Cut down large comment about zero-variant enums.Nicholas Nethercote-49/+3
2022-07-09Avoid transposes in deriving code.Nicholas Nethercote-218/+183
2022-07-09Remove `FieldInfo::attrs`.Nicholas Nethercote-17/+13
2022-07-09Rename `FieldInfo` fields.Nicholas Nethercote-14/+15
2022-07-09Clarify args terminology.Nicholas Nethercote-95/+127
2022-07-05Inline and remove the `cs_fold_*` functions.Nicholas Nethercote-48/+14
2022-07-05Avoid the unnecessary innermost match in `partial_cmp`/`cmp`.Nicholas Nethercote-25/+0
2022-07-04Avoid unnecessary 1-tuples in derived code.Nicholas Nethercote-2/+10
2022-07-04Avoid unnecessary blocks in derive output.Nicholas Nethercote-37/+77
2022-07-04Don't use match-destructuring for derived ops on structs.Nicholas Nethercote-44/+80