Skip to content

Fix integer_type to actually return integers all the time. - #1339

Merged
bors-servo merged 2 commits into
rust-lang:masterfrom
emilio:bitfield-int
Jul 6, 2018
Merged

bors-servo merged 2 commits into
rust-lang:masterfrom
emilio:bitfield-int

Conversation

@emilio

@emilio emilio commented Jun 25, 2018

Copy link
Copy Markdown
Contributor

blob() does care about alignment, so we can get into an architecture where there
are integers where size != align.

This is a tentative fix for servo/servo#21093, though
as mentioned there I couldn't find a repro on my machine.

@emilio

emilio commented Jun 25, 2018

Copy link
Copy Markdown
Contributor Author

r? @fitzgen

@emilio

emilio commented Jun 25, 2018

Copy link
Copy Markdown
Contributor Author

Hmm, actually this may not be that great either, since known_size_for_array looks at alignment, not size.

I'd prefer to wait for a repro before digging more here.

emilio added 2 commits July 5, 2018 02:32
blob() does care about alignment, so we can get into an architecture where there
are integers where size != align.

This is a tentative fix for servo/servo#21093, though
as mentioned there I couldn't find a repro on my machine.
@emilio

emilio commented Jul 5, 2018

Copy link
Copy Markdown
Contributor Author

Ok, I wrote this on top of #1346, and I think we should land this last bit.

@emilio

emilio commented Jul 6, 2018

Copy link
Copy Markdown
Contributor Author

r? @fitzgen :)

@fitzgen

fitzgen commented Jul 6, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

Thanks @emilio :)

@bors-servo

Copy link
Copy Markdown

📌 Commit 12452f5 has been approved by fitzgen

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit 12452f5 with merge 4652f80...

bors-servo pushed a commit that referenced this pull request Jul 6, 2018
Fix integer_type to actually return integers all the time.

blob() does care about alignment, so we can get into an architecture where there
are integers where size != align.

This is a tentative fix for servo/servo#21093, though
as mentioned there I couldn't find a repro on my machine.
@bors-servo

Copy link
Copy Markdown

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 4652f80 to master...

@bors-servo
bors-servo merged commit 12452f5 into rust-lang:master Jul 6, 2018
@emilio
emilio deleted the bitfield-int branch July 7, 2018 08:01
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