about summary refs log tree commit diff
path: root/src/libsyntax_ext/deriving/generic
AgeCommit message (Collapse)AuthorLines
2016-03-17Re-add double underscores in derive (fixes #32292)Manish Goregaokar-35/+35
2016-03-15Auto merge of #32251 - durka:derive-2810, r=alexcrichtonbors-40/+40
derive: clean up hygiene derive: clean up hygiene Fixes #2810. Spawned from #32139. r? @alexcrichton
2016-03-15Auto merge of #32250 - durka:derive-31574, r=alexcrichtonbors-11/+18
derive: use intrinsics::unreachable over unreachable!() derive: use intrinsics::unreachable over unreachable!() Fixes #31574. Spawned from #32139. r? @alexcrichton
2016-03-14Add `default` as contextual keyword, and parse it for impl items.Aaron Turon-0/+2
2016-03-14derive: remove most __ strings FIXME(#2810)Alex Burka-40/+40
This changes local variable names in all derives to remove leading double-underscores. As far as I can tell, this doesn't break anything because there is no user code in these generated functions except for struct, field and type parameter names, and this doesn't cause shadowing of those. But I am still a bit nervous.
2016-03-14derive: emit intrinsics::unreachable for impls on empty enumsAlex Burka-11/+18
fixes #31574
2016-03-01derive: Emit only PartialOrd::partial_cmp for simple enumsUlrik Sverdrup-0/+18
Using the same logic as for `PartialEq`, when possible define only `partial_cmp` and leave `lt, le, gt, ge` to their default implementations. This works well for c-like enums.
2016-02-22Fix #[derive] for empty structs with bracesVadim Petrochenkov-8/+13
2016-02-13Rename ast::Pat_ and its variantsVadim Petrochenkov-3/+3
2016-02-12Use more autoderef in libsyntax_extJonas Schievink-2/+2
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-10/+10
2016-02-11[breaking-change] don't glob export ast::Visibility variantsOliver 'ker' Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::Mutablity variantsOliver 'ker' Schneider-8/+11
2016-02-11[breaking-change] don't glob export ast::Item_ variantsOliver 'ker' Schneider-8/+8
2016-02-11[breaking-change] don't pub export ast::Ty_ variantsOliver Schneider-3/+3
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-11/+11
2016-02-11[breaking-change] don't glob export ast::Expr_ variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob export ast::ExplicitSelf_ variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-3/+2
2016-02-11[breaking-change] don't glob export ast::BlockCheckMode variantsOliver Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::BinOp_Oliver Schneider-4/+4
2015-12-21Auto merge of #30460 - Ms2ger:BindingMode, r=alexcrichtonbors-1/+1
2015-12-20Stop re-exporting the ast::BindingMode variants.Ms2ger-1/+1
2015-12-18Rollup merge of #30420 - petrochenkov:owned2, r=nrcManish Goregaokar-7/+5
Part of https://github.com/rust-lang/rust/pull/30095 not causing mysterious segfaults. r? @nrc
2015-12-18Deprecate name `OwnedSlice` and don't use itVadim Petrochenkov-7/+5
2015-12-17move error handling from libsyntax/diagnostics.rs to libsyntax/errors/*Nick Cameron-2/+2
Also split out emitters into their own module.
2015-12-15Move built-in syntax extensions to a separate crateSeo Sanghyeon-0/+1918