diff options
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r-- | src/codegen/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index 408d88bf..8344c4d1 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -2146,6 +2146,10 @@ impl MethodCodegen for Method { // First of all, output the actual function. let function_item = ctx.resolve_item(self.signature()); + if function_item.is_blacklisted(ctx) { + // We shouldn't emit a method declaration if the function is blacklisted + return; + } function_item.codegen(ctx, result, &()); let function = function_item.expect_function(); |