Skip to content

Add --allowlist-file option #2122

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

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

daviddrysdale
Copy link
Contributor

No description provided.

@highfive
Copy link

highfive commented Dec 2, 2021

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good with the nits addressed.

@@ -2318,6 +2319,21 @@ If you encounter an error missing from this list, please file an issue or a PR!"
return true;
}

// Items with a source location in an explicitly allowlisted file
// are always included.
if let Some(location) = &item.location() {
Copy link
Contributor

Choose a reason for hiding this comment

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

That way you can remove this ampersand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@sfackler
Copy link
Member

sfackler commented Dec 7, 2021

This branch is working great for openssl-sys :) sfackler/rust-openssl#1573

@sfackler
Copy link
Member

Is this ready to land?

@daviddrysdale
Copy link
Contributor Author

Is this ready to land?

Yes, as far as I know – @emilio, anything else needed/wanted?

@daviddrysdale daviddrysdale requested a review from emilio January 7, 2022 16:10
@bors-servo
Copy link

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

@daviddrysdale daviddrysdale force-pushed the allowlist-file branch 2 times, most recently from 80de9c7 to 45bf83d Compare January 29, 2022 12:31
@ianks
Copy link

ianks commented Feb 1, 2022

We are trying to use this feature in https://github.com/ianks/rb-sys for official Ruby support for Rust. Would love to see this get merged!

@ianks
Copy link

ianks commented Feb 17, 2022

@emilio i believe this should be ready to merge

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@emilio emilio merged commit e180d14 into rust-lang:master Feb 18, 2022
@sfackler
Copy link
Member

Any chance you could cut a release with this? Thanks!

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.

6 participants