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

Remove raw_pointer_deriving lint #29882

Merged
merged 3 commits into from Nov 18, 2015

Conversation

Projects
None yet
7 participants
@devonhollowood
Copy link
Contributor

devonhollowood commented Nov 17, 2015

Implement #14615

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Nov 17, 2015

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 17, 2015

@bors r+

Looks good to me, thanks!

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Nov 17, 2015

📌 Commit 5e8225a has been approved by Manishearth

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Nov 17, 2015

⌛️ Testing commit 5e8225a with merge 71bcaa1...

bors added a commit that referenced this pull request Nov 17, 2015

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Nov 17, 2015

💔 Test failed - auto-mac-64-opt

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 17, 2015

../src/liblibc/src/lib.rs:13:21: 13:39 error: unknown `allow` attribute: `raw_pointer_derive`, #[deny(unknown_lints)] on by default
../src/liblibc/src/lib.rs:13 #![allow(bad_style, raw_pointer_derive, overflowing_literals, improper_ctypes)]
                                                 ^~~~~~~~~~~~~~~~~~
error: aborting due to previous error

You'll have to open a PR to https://github.com/rust-lang-nursery/libc first to remove that, and then update the submodule. Sorry about that. Let me know if you need help (or want me to do it for you) 😄

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 17, 2015

@alexcrichton Do we consider breakages in allow lints (e.g. unknown_lints in this case) to be a breaking change? Especially since cargo does that lint cap thing.

@devonhollowood

This comment has been minimized.

Copy link
Contributor Author

devonhollowood commented Nov 17, 2015

I submitted a pull request to libc.
If we do consider this a breaking change, maybe it makes more sense to go back and change the default lint level from Warn to Allow instead of the changes here (which to my understanding would be non-breaking). If we do decide to do that, would it be cleaner to do so from a new pull request?

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Nov 17, 2015

Nah this isn't a breaking change because it's just tweaking lints, which aren't considered breaking changes (due to --cap-lints)

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 17, 2015

Cool.

@devonhollowood It landed, so you need to now update the submodule to rust-lang/libc@8531cc1 and add it to your commit. If you need help:

cd src/liblibc
git fetch origin
git checkout 8531cc11e196b7ae9072ae7b384a930ff7b00dfb
cd ..
git add liblibc
git commit --amend

or something like that.

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 17, 2015

@bors r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Nov 17, 2015

📌 Commit 0823ee6 has been approved by Manishearth

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Nov 18, 2015

⌛️ Testing commit 0823ee6 with merge 50b969d...

bors added a commit that referenced this pull request Nov 18, 2015

@bors bors merged commit 0823ee6 into rust-lang:master Nov 18, 2015

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
homu Test successful
Details

vinipsmaker added a commit to vinipsmaker/crust that referenced this pull request Nov 20, 2015

remove `raw_pointer_derive` linter
This lint was removed from Rust recently and is causing builds to fail:
rust-lang/rust#29882

Fixes maidsafe#427.

@zummenix zummenix referenced this pull request Nov 27, 2015

Closed

Unknown `deny` attribute #48

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Dec 11, 2015

This caused breakage. I was under the impression that lints are never supposed to be removed because of this problem and simply turned to no-ops.

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Dec 11, 2015

I thought lint changes are fine because of lint capping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.