diff --git a/.circleci/config.yml b/.circleci/config.yml index d802392b5..02ec9bf67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -455,8 +455,6 @@ jobs: package_vm: docker: - image: rust:1.74 - environment: - CARGO_INCREMENTAL: "0" steps: - checkout - run: diff --git a/packages/vm-derive-impl/src/hash_function.rs b/packages/vm-derive-impl/src/hash_function.rs index abc5a2c35..2475b049e 100644 --- a/packages/vm-derive-impl/src/hash_function.rs +++ b/packages/vm-derive-impl/src/hash_function.rs @@ -12,6 +12,7 @@ pub fn hash_function_impl(attr: TokenStream, input: TokenStream) -> TokenStream let _: syn::ItemFn = maybe!(syn::parse2(input.clone())); let display = input.to_string(); + panic!("display: {:?}", display); let hex_hash = blake3::hash(display.as_bytes()).to_hex(); let hex_hash = hex_hash.as_str(); diff --git a/packages/vm-derive/src/lib.rs b/packages/vm-derive/src/lib.rs index 8821ad262..09d8cf45b 100644 --- a/packages/vm-derive/src/lib.rs +++ b/packages/vm-derive/src/lib.rs @@ -1,9 +1,11 @@ +use std::fmt::Debug; + pub struct Hash(pub &'static str); inventory::collect!(Hash); #[inline] -pub fn collect_hashes() -> impl Iterator { +pub fn collect_hashes() -> impl Iterator + Debug { let mut hashes = inventory::iter:: .into_iter() .map(|hash| hash.0)