Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mem::size_of::<T>() == 0, TableLayout::new::<T>() and mem::needs_drop::<T>() const #366

Merged
merged 3 commits into from Oct 12, 2022

Conversation

JustForFun88
Copy link
Contributor

Just preparation for the upcoming for "Add new MIR constant propagation based on dataflow analysis" rust-lang/rust#101168, but this change is also useful on its own.

@JustForFun88 JustForFun88 changed the title Make mem::size_of::<T>() == 0 const Make mem::size_of::<T>() == 0, TableLayout::new::<T>() and mem::needs_drop::<T>() const Oct 11, 2022
@Amanieu
Copy link
Member

Amanieu commented Oct 12, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 12, 2022

📌 Commit 4e39290 has been approved by Amanieu

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 12, 2022

⌛ Testing commit 4e39290 with merge e39d245...

@bors
Copy link
Collaborator

bors commented Oct 12, 2022

☀️ Test successful - checks-actions
Approved by: Amanieu
Pushing e39d245 to master...

@bors bors merged commit e39d245 into rust-lang:master Oct 12, 2022
@bors bors mentioned this pull request Oct 12, 2022
@JustForFun88 JustForFun88 deleted the const_size_of branch October 12, 2022 02:23
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.

None yet

3 participants