Closed ChrisDenton closed 4 months ago
Hm, looks like it isn't enough to just add it to the workspace lint table.
Well that's less bad. 🥲 Thanks Chris!
Hmm, noticing a bunch of warnings in local builds now.
warning: D:\git\windows-rs\crates\tests\calling_convention\Cargo.toml: unused manifest key: lints.rust.unexpected_cfgs.check-cfg
warning: D:\git\windows-rs\crates\tests\debugger_visualizer\Cargo.toml: unused manifest key: lints.rust.unexpected_cfgs.check-cfg
warning: D:\git\windows-rs\Cargo.toml: unused manifest key: workspace.lints.rust.unexpected_cfgs.check-cfg
Looks like this is only on stable and goes away on nightly. Is that expected?
Oh. Hm. Looks like this is expected on stable. A fix to silence the warnings was backported to beta but not current stable. So it will be an issue until the next release.
This is an attempt to re-enable
unexpected_cfgs
using the newunexpected_cfgs
config inCargo.toml
. This avoids the need for a build script while still checking for typos in global cfgs.