From 1595523e974773a39d07ddeaffbc40bc533d01ae Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 16 Aug 2024 12:46:52 +0200 Subject: [PATCH] fix function name --- turbopack/crates/turbo-tasks/src/backend.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/turbopack/crates/turbo-tasks/src/backend.rs b/turbopack/crates/turbo-tasks/src/backend.rs index f56b68c56486c..37229a60ad224 100644 --- a/turbopack/crates/turbo-tasks/src/backend.rs +++ b/turbopack/crates/turbo-tasks/src/backend.rs @@ -312,18 +312,18 @@ impl CachedTaskType { fn_type: native_fn, this: _, arg: _, - } - | Self::ResolveNative { + } => Cow::Borrowed(®istry::get_function(*native_fn).name), + Self::ResolveNative { fn_type: native_fn, this: _, arg: _, - } => Cow::Borrowed(®istry::get_function(*native_fn).name), + } => format!("*{}", registry::get_function(*native_fn).name).into(), Self::ResolveTrait { trait_type: trait_id, method_name: fn_name, this: _, arg: _, - } => format!("{}::{}", registry::get_trait(*trait_id).name, fn_name).into(), + } => format!("*{}::{}", registry::get_trait(*trait_id).name, fn_name).into(), } }