Skip to content

Address unexpected_cfgs warnings - #115

Merged
sunfishcode merged 4 commits into
sunfishcode:mainfrom
Urgau:check-cfg-fixes
May 28, 2024
Merged

Address unexpected_cfgs warnings#115
sunfishcode merged 4 commits into
sunfishcode:mainfrom
Urgau:check-cfg-fixes

Conversation

@Urgau

@Urgau Urgau commented May 24, 2024

Copy link
Copy Markdown
Contributor

This PR updates to the latest nightly and address all the unexpected_cfgs warnings, I could find.

Namely it:

  • uses docsrs instead of doc_cfg, since the former is standard
  • removes the target_env = "gnueabi" condition since no target uses it
  • and removes the allow since there are no other warnings

Fixes #114
r? @sunfishcode

@Urgau

Urgau commented May 24, 2024

Copy link
Copy Markdown
Contributor Author

@sunfishcode Any idea on what might be the cause of those tests failure?

@sunfishcode

sunfishcode commented May 24, 2024

Copy link
Copy Markdown
Owner

It looks like updating to nightly-2024-05-18 breaks the trick that the compute_static_start function in src/relocate.rs is using to obtain the address of _start before relocation, in -C target-feature=+crt-static mode. I'm not immediately sure how to fix it.

@Urgau
Urgau force-pushed the check-cfg-fixes branch from 4781acf to 754dc7e Compare May 25, 2024 09:35
@sunfishcode

Copy link
Copy Markdown
Owner

I'm experimenting with #116 as a possible fix for this issue.

@sunfishcode

Copy link
Copy Markdown
Owner

I've now merged #116, which should fix the failures on Rust nightly. Would you mind rebasing on that?

@Urgau
Urgau force-pushed the check-cfg-fixes branch from 754dc7e to 139527b Compare May 28, 2024 16:53
@Urgau

Urgau commented May 28, 2024

Copy link
Copy Markdown
Contributor Author

Not at all. Rebased.

@sunfishcode

Copy link
Copy Markdown
Owner

Thanks!

@sunfishcode
sunfishcode merged commit f7c8a49 into sunfishcode:main May 28, 2024
@sunfishcode

Copy link
Copy Markdown
Owner

This is now released in origin 0.18.5.

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.

Use the check-cfg lint config

2 participants