-
Notifications
You must be signed in to change notification settings - Fork 1.8k
internal: Fix and enable unsafe_op_in_unsafe_fn #17690
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
Conversation
7f1c77b
to
25f41e5
Compare
25f41e5
to
b392eb4
Compare
@@ -15,7 +15,7 @@ env: | |||
CARGO_NET_RETRY: 10 | |||
CI: 1 | |||
RUST_BACKTRACE: short | |||
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are warn by default, I don't think we need them here.
@bors r+ |
☀️ Test successful - checks-actions |
@@ -163,14 +163,14 @@ xshell = "0.2.5" | |||
dashmap = { version = "=5.5.3", features = ["raw-api"] } | |||
|
|||
[workspace.lints.rust] | |||
bare_trait_objects = "warn" | |||
# remember to update RUSTFLAGS in ci.yml if you add something here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if we can make this work out better for CI 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just set them to deny
, I don't think it's going to be too annoying.
I don't think we can customize them for specific profiles: https://users.rust-lang.org/t/changing-lint-configuration-based-on-cargo-profile/107286/2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's going to be too annoying.
That will stop check early won't it? That will absolutely annoy me when refactoring because I don't fix all of those warnings immediately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That depends on whether you're using --keep-going
or not 😄.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well no, because any dependency that errors (due to this) will prevent dependents from building still 😅 At least that is my understanding of --keep-going
, it will make cargo no bail out on other independent work.
Closes #17689