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

ir: Whitelist items that don't generate code to improve derive behavior. #1492

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Jan 16, 2019

When not whitelisting recursively.

Fixes #1454

@jethrogb
Copy link
Contributor

jethrogb commented Jan 17, 2019

I don't think this is going to work in the generic case. For example, what if you're using types from another crate like libc::rlimit?

@emilio
Copy link
Contributor Author

emilio commented Jan 17, 2019

Can you put an example? You mean blacklisting rlimit and using core::libc::rlimit for example? I think we should be able to make that work.

@jethrogb
Copy link
Contributor

Added two more examples to #1454

@bors-servo
Copy link

☔ The latest upstream changes (presumably #1540) made this pull request unmergeable. Please resolve the merge conflicts.

@jethrogb
Copy link
Contributor

After working on #1540, I actually think this should be merged, even though it's not a fix for #1454.

@jethrogb
Copy link
Contributor

ping

@emilio
Copy link
Contributor Author

emilio commented Mar 25, 2019

Yeah, need to get to rebase this, sorry. I try contributions not to linger a lot, but I usually deprioritize my own work. Will try to do this tonight :)

@emilio emilio force-pushed the non-recursive-derive branch 2 times, most recently from 366fccd to 98a89fc Compare March 25, 2019 22:10
@emilio emilio force-pushed the non-recursive-derive branch from 98a89fc to 76d1959 Compare March 25, 2019 22:59
@emilio emilio merged commit b59419a into rust-lang:master Mar 26, 2019
@jethrogb
Copy link
Contributor

Test tests/headers/no-recursive-whitelisting.h no longer tests the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants