about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/deriving
AgeCommit message (Expand)AuthorLines
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-11/+10
2023-07-16Add a comparison between match *self and intrinsics::unreachable()David Tolnay-2/+3
2023-07-16Generate safe stable code for derives on empty enumsDavid Tolnay-4/+13
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-4/+4
2023-05-26Avoid some unnecessary local `attr` variables.Nicholas Nethercote-19/+11
2023-05-26Inline derived `hash` function.Nicholas Nethercote-2/+3
2023-05-18Rollup merge of #111633 - nnethercote:avoid-ref-format, r=WaffleLapkinDylan DPC-5/+5
2023-05-16Add derive for `core::marker::ConstParamTy`Nilstrieb-0/+23
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-5/+5
2023-05-07enable `rust_2018_idioms` for doctestsozkanonur-1/+1
2023-04-10Migrate most of `rustc_builtin_macros` to diagnostic implsclubby789-82/+48
2023-03-22rustc: Remove unused `Session` argument from some attribute functionsVadim Petrochenkov-6/+6
2023-03-11Address the new odd backticks tidy lint in compiler/est31-0/+1
2023-02-21Use `ThinVec` in a few more AST types.Nicholas Nethercote-1/+1
2023-02-21Use `ThinVec` in `ast::ExprKind::Match`.Nicholas Nethercote-5/+5
2023-02-21Use `ThinVec` in `ast::PatKind::Struct`.Nicholas Nethercote-2/+2
2023-02-21Use `ThinVec` in `ast::Block`.Nicholas Nethercote-21/+21
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-42/+47
2023-02-21Use `ThinVec` in `ast::Impl` and related types.Nicholas Nethercote-1/+2
2023-02-21Use `ThinVec` in `ast::WhereClause`.Nicholas Nethercote-1/+6
2023-02-21Use `ThinVec` in `ast::Generics` and related types.Nicholas Nethercote-5/+5
2023-02-19Auto merge of #108128 - clubby789:builtin-derived-attr, r=jackh726bors-2/+1
2023-02-16Properly check for builtin derivesclubby789-2/+1
2023-02-16`if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)`Maybe Waffle-11/+7
2023-02-09Extend `BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE`.Nicholas Nethercote-20/+35
2023-02-07Add ~const bounds trait bounds when using derive_constMichael Goulet-10/+27
2023-02-02Don't generate unecessary `&&self.field` in deriving Debugclubby789-5/+20
2023-02-01Fix syntax in `-Zunpretty-expanded` output for derived `PartialEq`.Nicholas Nethercote-5/+19
2023-01-30Allow more deriving on packed structs.Nicholas Nethercote-48/+98
2023-01-28Auto merge of #103659 - clubby789:improve-partialord-derive, r=nagisabors-9/+73
2023-01-21Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoeristerbors-42/+124
2023-01-19Special case `derive(Debug)` for fieldless enumsclubby789-2/+49
2023-01-19Add enum for fieldless unificationclubby789-43/+78
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-1/+1
2023-01-15Special case deriving `PartialOrd` for certain enum layoutsclubby789-9/+73
2022-12-28Rename `Rptr` to `Ref` in AST and HIRNilstrieb-5/+4
2022-12-06`rustc_builtin_macros`: remove `ref` patternsMaybe Waffle-64/+56
2022-12-01Rollup merge of #105106 - jhpratt:issue-105101, r=TaKO8KiMatthias Krüger-1/+1
2022-11-30Fix ICE from #105101Jacob Pratt-1/+1
2022-11-29Avoid more `MetaItem`-to-`Attribute` conversions.Nicholas Nethercote-18/+13
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-50/+31
2022-11-14Remove TraitDef::generics.Nicholas Nethercote-38/+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-15/+48
2022-10-15Mark derived StructuralEq as automatically derived.Camille GILLOT-5/+11
2022-10-10Rename AssocItemKind::TyAlias to AssocItemKind::TypeMichael Goulet-1/+1
2022-10-06Auto merge of #99324 - reez12g:issue-99144, r=jyn514bors-0/+5