Deny rust_2018_idioms globally#60133
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
Looks like |
This comment has been minimized.
This comment has been minimized.
|
The job Click to expand the log.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 |
|
r? @Centril |
|
I'm not sure if there are alternatives to 8e55559. Apart from that, I think this PR is ready. |
|
@bors r+ |
|
📌 Commit 8e55559 has been approved by |
|
⌛ Testing commit 8e55559 with merge 5452576bb46d2a07c49410acf86898e1f9790883... |
|
💔 Test failed - checks-travis |
|
The job Click to expand the log.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 |
|
@bors retry |
Deny rust_2018_idioms globally cc #58099 (comment)
| #![feature(try_reserve)] | ||
| #![feature(unboxed_closures)] | ||
| #![feature(vecdeque_rotate)] | ||
| #![deny(rust_2018_idioms)] |
There was a problem hiding this comment.
I don't understand why it's denied here if it was denied in rustbuild already.
Also, why aren't all the deny(rust_2018_idioms)s in specific crates removed?
There was a problem hiding this comment.
We can remove them in a follow up. However, I personally prefer to keep them as it works better when you cargo check a crate without x.py.
|
☀️ Test successful - checks-travis, status-appveyor |
| #![deny(rust_2018_idioms)] | ||
|
|
||
| extern crate core; | ||
| extern crate test; |
There was a problem hiding this comment.
Any idea why you didn't also have to remove this line? It causes a build failure when building the tests "from the outside" at https://travis-ci.org/RalfJung/miri-test-libstd/builds/523334973.
There was a problem hiding this comment.
I'm not really sure. Do you maybe have to pass --test in order for the crate to be used?
There was a problem hiding this comment.
Hm, no... removing it actually makes it fail in x.py. But somehow it is considered redundant when compiled in a less magic environment?
There was a problem hiding this comment.
I think adding #[allow(unused_extern_crates)] before extern crate test; should fix it (like here), but I won't be able to actually try it out until later today.
cc #58099 (comment)