From 10c0554e0f90a95b70366e65bf2f039f26174310 Mon Sep 17 00:00:00 2001 From: Boxy Date: Tue, 30 Jul 2024 15:59:04 +0100 Subject: [PATCH 1/3] Check in `speedate` Cargo.lock changes --- Cargo.lock | 2 ++ 1 file changed, 2 insertions(+) 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", From 5aab429638866906eeeaf1b86ad1c834ea8fde77 Mon Sep 17 00:00:00 2001 From: Boxy Date: Tue, 30 Jul 2024 16:10:28 +0100 Subject: [PATCH 2/3] Space out a comment --- src/serializers/ob_type.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 7c36fe6495351995845aba17e8196afe505fc02f Mon Sep 17 00:00:00 2001 From: Boxy Date: Tue, 30 Jul 2024 16:10:35 +0100 Subject: [PATCH 3/3] Specify has_coverage_attribute as a known cfg --- build.rs | 1 + 1 file changed, 1 insertion(+) 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()); }