Revert "Remove ::solana_sdk hack (#11326)"

This reverts commit c099b29b36.
This commit is contained in:
Michael Vines 2020-09-01 11:50:32 -07:00
parent da1b480bd3
commit 29cfbce21d
1 changed files with 5 additions and 1 deletions

View File

@ -58,12 +58,16 @@ macro_rules! declare_name {
// `declare_name(foo)`
//
// See the `respan!` macro for more details.
// This should use `crate::respan!` once
// https://github.com/rust-lang/rust/pull/72121 is merged:
// see https://github.com/solana-labs/solana/issues/10933.
// For now, we need to use `::solana_sdk`
//
// `respan!` respans the path `$crate::id`, which we then call (hence the extra
// parens)
(
stringify!($filename).to_string(),
$crate::respan!($crate::$id, $name)(),
::solana_sdk::respan!($crate::$id, $name)(),
)
};
}