about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving
AgeCommit message (Expand)AuthorLines
2022-09-05Fix `#[derive(Default)]` on a generic `#[default]` enum adding unnecessary `D...Daniel Henry-Mantilla-1/+35
2022-09-01Auto merge of #100869 - nnethercote:replace-ThinVec, r=spastorinobors-19/+18
2022-08-29Replace `rustc_data_structures::thin_vec::ThinVec` with `thin_vec::ThinVec`.Nicholas Nethercote-19/+18
2022-08-28Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillotbors-2/+1
2022-08-22Use `AttrVec` in more places.Nicholas Nethercote-19/+17
2022-08-18Auto merge of #98655 - nnethercote:dont-derive-PartialEq-ne, r=dtolnaybors-57/+25
2022-08-18Rollup merge of #100669 - nnethercote:attribute-cleanups, r=spastorinoMatthias Krüger-21/+5
2022-08-17Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkovMatthias Krüger-9/+3
2022-08-17Remove `attrs` arg from `typaram` and `mk_ty_param`.Nicholas Nethercote-4/+3
2022-08-17Remove `TraitDef::attributes`.Nicholas Nethercote-17/+2
2022-08-16Remove `{ast,hir}::WhereEqPredicate::id`.Nicholas Nethercote-5/+1
2022-08-16Make `ExtCtxt::expr_lit` non-`pub`.Nicholas Nethercote-9/+3
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-57/+25
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-211/+167
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-39/+65
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-162/+114
2022-07-09Fix some inconsistencies.Nicholas Nethercote-58/+31
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-18/+14
2022-07-09Rename `FieldInfo` fields.Nicholas Nethercote-45/+59
2022-07-09Clarify args terminology.Nicholas Nethercote-109/+147
2022-07-05Inline and remove the `cs_fold_*` functions.Nicholas Nethercote-51/+17
2022-07-05Avoid the unnecessary innermost match in `partial_cmp`/`cmp`.Nicholas Nethercote-34/+34
2022-07-04Avoid unnecessary 1-tuples in derived code.Nicholas Nethercote-2/+10
2022-07-04Don't repeat `AssertParamIs{Clone,Eq}` assertions.Nicholas Nethercote-16/+35
2022-07-04Avoid unnecessary blocks in derive output.Nicholas Nethercote-111/+146
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-14/+8
2022-07-01Rename `Ty::Literal` as `Ty::Path`.Nicholas Nethercote-29/+18
2022-07-01Remove lifetime support in deriving code.Nicholas Nethercote-32/+11
2022-07-01Simplify pointer handling.Nicholas Nethercote-100/+43
2022-07-01`expand_deriving_clone` tweaks.Nicholas Nethercote-28/+22
2022-07-01Remove some commented-out code.Nicholas Nethercote-2/+0
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-37/+2
2022-07-01Remove `Substructure::method_ident`.Nicholas Nethercote-9/+1
2022-07-01Remove unnecessary fields from `EnumNonMatchingCollapsed`.Nicholas Nethercote-30/+14