Skip to content

Simplify discriminant matching#10

Merged
bors[bot] merged 1 commit into
rust-num:masterfrom
cuviper:blind-discriminant
Feb 10, 2018
Merged

Simplify discriminant matching#10
bors[bot] merged 1 commit into
rust-num:masterfrom
cuviper:blind-discriminant

Conversation

@cuviper

@cuviper cuviper commented Feb 10, 2018

Copy link
Copy Markdown
Member

We don't actually need to know the expressions assigned to each variant,
nor compute offsets for those without an expression. We can just cast
each #name::#ident directly to i64 for comparison.

We don't actually need to know the expressions assigned to each variant,
nor compute offsets for those without an expression.  We can just cast
each `#name::#ident` directly to `i64` for comparison.
@cuviper

cuviper commented Feb 10, 2018

Copy link
Copy Markdown
Member Author

bors r+

bors Bot added a commit that referenced this pull request Feb 10, 2018
10: Simplify discriminant matching r=cuviper a=cuviper

We don't actually need to know the expressions assigned to each variant,
nor compute offsets for those without an expression.  We can just cast
each `#name::#ident` directly to `i64` for comparison.
@bors

bors Bot commented Feb 10, 2018

Copy link
Copy Markdown
Contributor

Build succeeded

@bors bors Bot merged commit 53f2b33 into rust-num:master Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant