Skip to content

Conversation

@petrochenkov
Copy link
Contributor

r? @eddyb

@petrochenkov
Copy link
Contributor Author

The diff looks much better with whitespaces ignored https://github.com/rust-lang/rust/pull/36331/files?w=1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guard is unnecessary (because non_zero means it's the NonZero lang item).

@eddyb
Copy link
Member

eddyb commented Sep 7, 2016

LGTM modulo somewhat minor ty::layout / trans::adt concerns.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here if sty here was a TyEnum previously?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct_variant() reports another span_bug!

@petrochenkov
Copy link
Contributor Author

Updated, comments addressed.

@eddyb
Copy link
Member

eddyb commented Sep 9, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 9, 2016

📌 Commit 553d5f0 has been approved by eddyb

@bors
Copy link
Collaborator

bors commented Sep 9, 2016

⌛ Testing commit 553d5f0 with merge f1f40f8...

bors added a commit that referenced this pull request Sep 9, 2016
Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`

r? @eddyb
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.

4 participants