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

Remove use of unstable const_type_id feature (fixes CI failures on 1.47+) #418

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Oct 14, 2020

The const_type_id feature was planned to stabilize in Rust 1.47, but this was reverted in rust-lang/rust#77083.

build.rs currently assumes the feature is stable in Rust 1.47 and later. This now causes errors when building log with the kv_unstable feature on beta and nightly, which in turn is causing CI to fail on master.

This patch simply removes the code that uses this feature, since it is not clear when it might be stabilized. Alternatively, the code could be kept around behind a second, nightly-only Cargo feature if it is still useful to someone. CC @KodrAus who added this code in #396.

The `const_type_id` feature was planned to stabilize in Rust 1.47, but
this was reverted in: rust-lang/rust#77083

This causes errors when building `log` with the `kv_unstable` feature on
Rust 1.47 or later.  This patch removes the use of this no-longer-stable
feature in those Rust versions.
@mbrubeck mbrubeck changed the title Remove use of unstable const_type_id feature Remove use of unstable const_type_id feature (fixes CI failures on 1.47+) Oct 14, 2020
@KodrAus
Copy link
Contributor

KodrAus commented Oct 15, 2020

Ah! My bad 😄 I saw your message come through my notifications but thought it was a comment rather than a PR so I just pushed through #419 to fix this.

I have an in-progress branch that refactors the guts of the value module with an external crate that handles this all in a cleaner way so didn't go as far as actually removing the internal usage that you've tracked down.

Thanks for patching this up! 🙇

@KodrAus KodrAus closed this Oct 15, 2020
@KodrAus KodrAus reopened this Oct 15, 2020
@KodrAus KodrAus merged commit 14d7303 into rust-lang:master Oct 15, 2020
@KodrAus
Copy link
Contributor

KodrAus commented Oct 15, 2020

Re-opened and merged because this also fixes warnings in the build script.

Thanks again!

EFanZh pushed a commit to EFanZh/log that referenced this pull request Jul 23, 2023
* Fix `cargo_toml`: Bump dep to v0.12.1
* Test `cargo-watch` in CI
* Fix `*-test-Cargo.toml` used in integration tests

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
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.

None yet

2 participants