File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
trunk/src/libsyntax/ext/deriving/generic Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7721d46bd76967e73a04b7944651094d3d2f9274
2
+ refs/heads/master: 34d5b5450cf8728321a77f3e32393197fd66a325
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
5
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05
Original file line number Diff line number Diff line change @@ -1042,10 +1042,12 @@ impl<'a> MethodDef<'a> {
1042
1042
/// variants where all of the variants match, and one catch-all for
1043
1043
/// when one does not match.
1044
1044
1045
+ /// As an optimization we generate code which checks whether all variants
1046
+ /// match first which makes llvm see that C-like enums can be compiled into
1047
+ /// a simple equality check (for PartialEq).
1048
+
1045
1049
/// The catch-all handler is provided access the variant index values
1046
- /// for each of the self-args, carried in precomputed variables. (Nota
1047
- /// bene: the variant index values are not necessarily the
1048
- /// discriminant values. See issue #15523.)
1050
+ /// for each of the self-args, carried in precomputed variables.
1049
1051
1050
1052
/// ```{.text}
1051
1053
/// let __self0_vi = unsafe {
You can’t perform that action at this time.
0 commit comments