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

Update to the latest Rust nightly. #113

Merged
merged 3 commits into from
May 18, 2024
Merged

Conversation

sunfishcode
Copy link
Owner

No description provided.

Telling rustc about `doc_cfg` would require a build.rs script, which
I'd rather not add if we don't otherwise need one. So for now, just
disable this warning.
@sunfishcode sunfishcode merged commit 8bc6aaf into main May 18, 2024
5 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/update-nightly branch May 18, 2024 11:49
@Urgau
Copy link
Contributor

Urgau commented May 24, 2024

Heads up, with the release of rust-lang/cargo#13913 (in nightly-2024-05-19), Cargo has now gain the ability to declare --check-cfg args directly inside the [lints] table with [lints.rust.unexpected_cfgs.check-cfg]1:

Cargo.toml:

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(foo)'] }

Note that the diagnostic output of the lint has been updated to suggest the [lints] approach first. You can use it to guide you through the --check-cfg arguments that may need to be added.

Footnotes

  1. take effect on Rust 1.80 (current nightly), is ignored on Rust 1.79 (current beta), and produce an unused warning below

@sunfishcode
Copy link
Owner Author

Thanks! I filed #114 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants