Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 29cfbce

Browse files
committed
Revert "Remove ::solana_sdk hack (#11326)"
This reverts commit c099b29.
1 parent da1b480 commit 29cfbce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/src/entrypoint_native.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ macro_rules! declare_name {
5858
// `declare_name(foo)`
5959
//
6060
// See the `respan!` macro for more details.
61+
// This should use `crate::respan!` once
62+
// https://github.com/rust-lang/rust/pull/72121 is merged:
63+
// see https://github.com/solana-labs/solana/issues/10933.
64+
// For now, we need to use `::solana_sdk`
6165
//
6266
// `respan!` respans the path `$crate::id`, which we then call (hence the extra
6367
// parens)
6468
(
6569
stringify!($filename).to_string(),
66-
$crate::respan!($crate::$id, $name)(),
70+
::solana_sdk::respan!($crate::$id, $name)(),
6771
)
6872
};
6973
}

0 commit comments

Comments
 (0)