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

Rename autocfg probe method to _foo to avoid dead code warning #933

Merged
merged 1 commit into from
May 13, 2022

Conversation

danielframpton
Copy link
Contributor

If rayon is built in a configuration with warnings as error (e.g., RUSTFLAGS=-Dwarnings), then the probe will fail even though the compiler does have the necessary const generic support.

@cuviper
Copy link
Member

cuviper commented May 12, 2022

This is fine, although I must say I'm generally not a fan of RUSTFLAGS=-Dwarnings.
(We'll probably start applying --cap-lints to avoid such problems...)

bors r+

bors bot added a commit that referenced this pull request May 12, 2022
933: Rename autocfg probe method to _foo to avoid dead code warning r=cuviper a=danielframpton

If rayon is built in a configuration with warnings as error (e.g., `RUSTFLAGS=-Dwarnings`), then the probe will fail even though the compiler does have the necessary const generic support.

Co-authored-by: Daniel Frampton <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 12, 2022

Build failed:

@cuviper
Copy link
Member

cuviper commented May 12, 2022

The failure is not your fault -- I'm looking into what changed on nightly...

@cuviper
Copy link
Member

cuviper commented May 12, 2022

@cuviper
Copy link
Member

cuviper commented May 12, 2022

That should be fixed by #935.

bors retry

@bors bors bot merged commit 9801de7 into rayon-rs:master May 13, 2022
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.

2 participants