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

Fix new nightly errors #205

Merged
merged 2 commits into from
May 29, 2024
Merged

Fix new nightly errors #205

merged 2 commits into from
May 29, 2024

Conversation

notgull
Copy link
Member

@notgull notgull commented May 29, 2024

  • Use i32::MAX instead of std::i32::MAX
  • Add "expected cfg" lints to Cargo.toml

- Use i32::MAX instead of std::i32::MAX
- Add "expected cfg" lints to Cargo.toml

Signed-off-by: John Nunley <[email protected]>
Cargo.toml Outdated
@@ -17,6 +17,9 @@ exclude = ["/.*"]
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs)', 'cfg(polling_test_poll_backend)', 'cfg(polling_test_epoll_pipe)'] }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs)', 'cfg(polling_test_poll_backend)', 'cfg(polling_test_epoll_pipe)'] }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(polling_test_poll_backend)', 'cfg(polling_test_epoll_pipe)'] }

cfg(docsrs) is an official cfg set by docs.rs. https://github.com/rust-lang/cargo/blob/431db31d0dbeda320caf8ef8535ea48eb3093407/src/cargo/core/compiler/mod.rs#L1351

@taiki-e
Copy link
Collaborator

taiki-e commented May 29, 2024

LGTM aside from the above nit.

Signed-off-by: John Nunley <[email protected]>
@notgull notgull merged commit 2af3a5e into master May 29, 2024
26 checks passed
@notgull notgull deleted the notgull/nightly branch May 29, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants