about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving/generic
AgeCommit message (Expand)AuthorLines
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
2022-07-04Comment fixes.Nicholas Nethercote-2/+1
2022-07-01Change `Ty::Tuple` to `Ty::Unit`.Nicholas Nethercote-11/+5
2022-07-01Rename `Ty::Literal` as `Ty::Path`.Nicholas Nethercote-3/+3
2022-07-01Remove lifetime support in deriving code.Nicholas Nethercote-22/+6
2022-07-01Simplify pointer handling.Nicholas Nethercote-76/+26
2022-07-01Remove some unnecessary `pub`s.Nicholas Nethercote-3/+3
2022-07-01Remove `Substructure::self_args`.Nicholas Nethercote-18/+2
2022-07-01Remove `{Method,Trait}Def::is_unsafe`.Nicholas Nethercote-16/+2
2022-07-01Remove `Substructure::method_ident`.Nicholas Nethercote-9/+1
2022-07-01Remove unnecessary fields from `EnumNonMatchingCollapsed`.Nicholas Nethercote-25/+9
2022-07-01Use `split_{first,last}` in `cs_fold1`.Nicholas Nethercote-9/+8
2022-06-27Merge `build_enum_match_tuple` into `expand_enum_method_body`.Nicholas Nethercote-52/+20
2022-06-27Improve derived discriminant testing.Nicholas Nethercote-21/+16
2022-05-27Modify `derive(Debug)` to use `Self` in struct literal to avoid redundant errorEsteban Küber-1/+3
2022-05-25Fix a typo on Struct `Substructure`Yuki Okushi-1/+1
2022-05-02fix most compiler/ doctestsElliot Roberts-6/+9
2022-03-05Change syntax for TyAlias where clausesJack Huey-0/+5
2021-12-09Remove redundant [..]sest31-10/+10
2021-12-03Annotate `derive`d spans and move span suggestion codeEsteban Kuber-61/+74
2021-12-03Remove some unnecessarily verbose codeEsteban Kuber-20/+5
2021-12-03Keep spans for generics in `#[derive(_)]` desugaringEsteban Kuber-23/+19
2021-11-07ast: Fix naming conventions in AST structuresVadim Petrochenkov-13/+13
2021-10-17rustc_span: `Ident::invalid` -> `Ident::empty`Vadim Petrochenkov-1/+1