Open Wuelle opened 1 month ago
I believe usage cfg(nightly) is also a bug - the documentation2 seems to suggest that features are automatically enabled when compiled
They're automatically enabled when compiled because the build script detects the nightly
compiler and sets cfg(nightly)
accordingly:
You'll still need to preserve cfg(nightly)
for this to work.
I believe usage cfg(nightly) is also a bug - the documentation2 seems to suggest that features are automatically enabled when compiled
They're automatically enabled when compiled because the build script detects the
nightly
compiler and setscfg(nightly)
accordingly:You'll still need to preserve
cfg(nightly)
for this to work.I believe usage cfg(nightly) is also a bug - the documentation2 seems to suggest that features are automatically enabled when compiled
They're automatically enabled when compiled because the build script detects the
nightly
compiler and setscfg(nightly)
accordingly:You'll still need to preserve
cfg(nightly)
for this to work.
Ah thanks, i didn't see the build script. Fixed
The
unexpected_cfgs
lint was previously disabled in 9252fa5c0d09054fed. Since the lint can now be configured usingCargo.toml
^2 nobuild.rs
shenanigans are necessary anymore.This PR also fixes some immediate bugs found, two tests used comma-seperated config flags
cfg(target_feature = "avx512ifma,avx512vl")
, which is invalid (and always false). Instead, it should becfg(all(target_feature = "avx512ifma", target_feature = "avx512vl"))
. From what I've seen, this pattern also exists in the proc-macros used to enable target features for certain functions. But I don't understand the codebase well enough to say this for certain, and I didn't look too much into it either.I believe usage
cfg(nightly)
is also a bug - the documentation^1 seems to suggest that features are automatically enabled when compiledThis is incorrect, since
cfg(nightly)
does not exist, and AFAIK there is no way to detect whether code is being compiled by a "nightly" compiler (and the definition of "nightly" changes all the time anyways). But perhaps this was intended to be used manually? (via--cfg nightly
)