How to set `-Zcheck-cfg` option in config.toml?

Recently Rust nightly support -Zcheck-cfg option to -- Specify scope of compile-time checking of cfg names/values. It can be attached to command line option as -Zcheck-cfg=features,names,values,output; but can't be added to config.toml unstable section. Such as in .cargo/config.toml


compiler says error: invalid type: string "features", expected a boolean

Anyone knows how to set it up?

For features checking I think you should use check-cfg-features = true.

check-cfg-features has been deprecated.
The new --check-cfg covers all features names values ...

But config options still confuse me a lot.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.