Skip to content

Conversation

Urgau
Copy link
Contributor

@Urgau Urgau commented May 24, 2024

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
Copy link
Contributor Author

Urgau commented May 24, 2024

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

@sunfishcode
Copy link
Owner

sunfishcode commented May 24, 2024

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
Owner

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

@sunfishcode
Copy link
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
Copy link
Contributor Author

Urgau commented May 28, 2024

Not at all. Rebased.

@sunfishcode
Copy link
Owner

Thanks!

@sunfishcode sunfishcode merged commit f7c8a49 into sunfishcode:main May 28, 2024
@sunfishcode
Copy link
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