File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
turbo-tasks-backend/src/backend Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use turbo_tasks::{
36
36
} ,
37
37
event:: { Event , EventListener } ,
38
38
message_queue:: TimingEvent ,
39
- registry:: get_value_type_global_name ,
39
+ registry:: get_value_type ,
40
40
task_statistics:: TaskStatisticsApi ,
41
41
trace:: TraceRawVcs ,
42
42
turbo_tasks,
@@ -867,7 +867,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
867
867
868
868
let _span = tracing:: trace_span!(
869
869
"recomputation" ,
870
- cell_type = get_value_type_global_name ( cell. type_id) ,
870
+ cell_type = get_value_type ( cell. type_id) . global_name ,
871
871
cell_index = cell. index
872
872
)
873
873
. entered ( ) ;
@@ -3133,7 +3133,7 @@ impl DebugTraceTransientTask {
3133
3133
cell_type_id : Option < ValueTypeId > ,
3134
3134
) -> fmt:: Result {
3135
3135
if let Some ( ty) = cell_type_id {
3136
- write ! ( f, " (read cell of type {})" , get_value_type_global_name ( ty) )
3136
+ write ! ( f, " (read cell of type {})" , get_value_type ( ty) . global_name )
3137
3137
} else {
3138
3138
Ok ( ( ) )
3139
3139
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ static FUNCTIONS: Lazy<Functions> = Lazy::new(|| {
29
29
let global_name = native_function. global_name ;
30
30
let new = names. insert ( global_name) ;
31
31
debug_assert ! (
32
- ! new,
32
+ new,
33
33
"multiple functions registered with name: {global_name}!"
34
34
) ;
35
35
}
@@ -103,10 +103,6 @@ pub fn get_value_type(id: ValueTypeId) -> &'static ValueType {
103
103
VALUES . id_to_value [ * id as usize - 1 ]
104
104
}
105
105
106
- pub fn get_value_type_global_name ( id : ValueTypeId ) -> & ' static str {
107
- get_value_type ( id) . global_name
108
- }
109
-
110
106
struct Traits {
111
107
id_to_trait : Box < [ & ' static TraitType ] > ,
112
108
trait_to_id : FxHashMap < & ' static TraitType , TraitTypeId > ,
@@ -155,7 +151,3 @@ pub fn get_trait_type_id(trait_type: &'static TraitType) -> TraitTypeId {
155
151
pub fn get_trait ( id : TraitTypeId ) -> & ' static TraitType {
156
152
TRAITS . id_to_trait [ * id as usize - 1 ]
157
153
}
158
-
159
- pub fn get_trait_type_global_name ( id : TraitTypeId ) -> & ' static str {
160
- get_trait ( id) . global_name
161
- }
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl Serialize for TypedSharedReference {
116
116
} else {
117
117
Err ( serde:: ser:: Error :: custom ( format ! (
118
118
"{:?} is not serializable" ,
119
- registry:: get_value_type_global_name ( * ty)
119
+ registry:: get_value_type ( * ty) . global_name
120
120
) ) )
121
121
}
122
122
}
You can’t perform that action at this time.
0 commit comments