From 064b4244a4d7b3e90a60278b1e3e77bbbba153fb Mon Sep 17 00:00:00 2001 From: jfh Date: Fri, 4 Jun 2021 13:39:39 +0300 Subject: [PATCH] Fix arguments passed to make_funcdef. --- vm/src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/src/macros.rs b/vm/src/macros.rs index c7e5937fc..4258efff2 100644 --- a/vm/src/macros.rs +++ b/vm/src/macros.rs @@ -229,11 +229,11 @@ macro_rules! named_function { let ctx: &$crate::PyContext = &$ctx; $crate::__exports::paste::expr! { ctx.make_funcdef( - stringify!($module), + stringify!($func), [<$module _ $func>], ) .into_function() - .with_module(ctx.new_str(stringify!($func).to_owned())) + .with_module(ctx.new_str(stringify!($module).to_owned())) .build(ctx) } }};