diff --git a/Cargo.lock b/Cargo.lock index 770f6d0b6..3638f2629 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -613,6 +613,8 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "speedate" version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08a20480dbd4c693f0b0f3210f2cee5bfa21a176c1fa4df0e65cc0474e7fa557" dependencies = [ "strum", "strum_macros", diff --git a/build.rs b/build.rs index 7f59e1f57..d1093c747 100644 --- a/build.rs +++ b/build.rs @@ -35,6 +35,7 @@ fn main() { if let Some(true) = version_check::supports_feature("coverage_attribute") { println!("cargo:rustc-cfg=has_coverage_attribute"); } + println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)"); generate_self_schema(); println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap()); } diff --git a/src/serializers/ob_type.rs b/src/serializers/ob_type.rs index 1eaa090a8..196cf27b7 100644 --- a/src/serializers/ob_type.rs +++ b/src/serializers/ob_type.rs @@ -290,7 +290,8 @@ impl ObTypeLookup { /// We care about order here since: /// 1. we pay a price for each `isinstance` call /// 2. some types are subclasses of others, e.g. `bool` is a subclass of `int` - /// hence we put common types first + /// hence we put common types first + /// /// In addition, some types have inheritance set as a bitflag on the type object: /// https://github.com/python/cpython/blob/v3.12.0rc1/Include/object.h#L546-L553 /// Hence they come first