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

[WIP] UNUSED_EXTERN_CRATES -> Deny #59483

Closed

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Mar 28, 2019

Continuing on from #59482 with the rust_2018_idioms group, we have unused_extern_crates to progress.

r? @oli-obk
(I'm primarily assigning you because the PR needs a reviewer for the code changes, not for the T-Lang policy questions.. ^^)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 28, 2019
@Centril Centril added I-nominated T-lang Relevant to the language team, which will review and decide on the PR/issue. labels Mar 28, 2019
@Centril
Copy link
Contributor Author

Centril commented Mar 28, 2019

Likely blocked on #58702 and #58828.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
travis_time:end:0c646b52:start=1553770199581150818,finish=1553770200679817968,duration=1098667150
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
Setting environment variables from .travis.yml
---
18940 ./obj/build/x86_64-unknown-linux-gnu/stage0-codegen
17940 ./src/llvm-project/lldb/www/python_reference
travis_time:end:034c1d09:start=1553771999465456737,finish=1553772000416824880,duration=951368143
travis_fold:end:after_failure.1
trabuild/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:00a3c5be
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@Centril
Copy link
Contributor Author

Centril commented Mar 30, 2019

Justified by https://github.com/rust-lang/rfcs/blob/master/text/2126-path-clarity.md#basic-changes. In particular, this is only for extern crates that the compiler thinks are unnecessary.

@petrochenkov
Copy link
Contributor

Also, this is a usual unused lint, they are not normally deny-ed, only warn-ed about.

@Centril
Copy link
Contributor Author

Centril commented Mar 30, 2019

@petrochenkov Deny is for crater purposes to measure before turning back into Warn.

@Centril
Copy link
Contributor Author

Centril commented Apr 4, 2019

We discussed this on this weeks lang meeting; the general consensus was to crater and see how things fall out and move on from there.

However, I think we should be cognizant of #59483 (comment).

@Dylan-DPC-zz
Copy link

ping from triage @Centril Closing this as inactive 

@Dylan-DPC-zz Dylan-DPC-zz added S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 15, 2019
@Centril Centril deleted the unused_extern_crates-evolution branch June 29, 2019 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. T-lang Relevant to the language team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants