Skip to content

Commit 5831b46

Browse files
author
B Vadlamani
committed
add_documentation_macro_def
1 parent 12dbdeb commit 5831b46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datafusion/common/src/error.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,11 @@ macro_rules! assert_ne_or_internal_err {
904904
///
905905
/// `NAME_ERR` - macro name for wrapping Err(DataFusionError::*)
906906
/// `PREFIXED_NAME_ERR` - underscore-prefixed alias for NAME_ERR (e.g., _plan_err)
907+
/// (Needed to avoid compiler error when using macro in the same crate: `macros from the current crate cannot be referred to by absolute paths`)
907908
/// `NAME_DF_ERR` - macro name for wrapping DataFusionError::*. Needed to keep backtrace opportunity
908909
/// in construction where DataFusionError::* used directly, like `map_err`, `ok_or_else`, etc
909-
/// `PREFIXED_NAME_DF_ERR` - underscore-prefixed alias for NAME_DF_ERR (e.g., _plan_datafusion_err)
910+
/// `PREFIXED_NAME_DF_ERR` - underscore-prefixed alias for NAME_DF_ERR (e.g., _plan_datafusion_err).
911+
/// (Needed to avoid compiler error when using macro in the same crate: `macros from the current crate cannot be referred to by absolute paths`)
910912
macro_rules! make_error {
911913
($NAME_ERR:ident, $PREFIXED_NAME_ERR:ident, $NAME_DF_ERR:ident, $PREFIXED_NAME_DF_ERR:ident, $ERR:ident) => {
912914
make_error!(@inner ($), $NAME_ERR, $PREFIXED_NAME_ERR, $NAME_DF_ERR, $PREFIXED_NAME_DF_ERR, $ERR);

0 commit comments

Comments
 (0)