You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected cfgs beginning with nightly-2024-11-20 #309
Beginning with nightly-2024-11-20 (today), compiling a simple program like this:
#[ctor::ctor]fninit(){}
produces a warning like this:
warning: unexpected `cfg` condition value: `used_linker`
--> src/lib.rs:1:1
|
1 | #[ctor::ctor]
| ^^^^^^^^^^^^^
|
= note: no expected values for `feature`
= help: consider adding `used_linker` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
= note: this warning originates in the attribute macro `ctor::ctor` (in Nightly builds, run with -Z macro-backtrace for more info)
Activity
mmastrac commentedon Nov 20, 2024
Ack. This was certainly an oversight in the original implementation of this feature.
I'll ponder a fix for this. Thanks for the great report.
Fix `used_linker` feature (#310)
mmastrac commentedon Nov 20, 2024
Fixed and released as 0.2.9.
smoelius commentedon Nov 20, 2024
Thanks for the prompt fix!
chore(deps): Upgrade ctor 0.2.3 to 0.2.9
chore: upgrade Rust to 1.83.0 nightly (#8712)
Upgrade to Rust 1.85.0.
Upgrade to Rust 1.85.0 / 2024 edition. (#278)