File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,6 @@ mod builtins {
38
38
const CODEGEN_NOT_SUPPORTED : & str =
39
39
"can't compile() to bytecode when the `codegen` feature of rustpython is disabled" ;
40
40
41
- #[ pyfunction]
42
- fn gc ( ) -> PyResult < usize > {
43
- #[ cfg( feature = "gc" ) ]
44
- {
45
- use crate :: object:: gc:: GLOBAL_COLLECTOR ;
46
- Ok ( GLOBAL_COLLECTOR . force_gc ( ) )
47
- }
48
- #[ cfg( not( feature = "gc" ) ) ]
49
- Ok ( 0 )
50
- }
51
-
52
41
#[ pyfunction]
53
42
fn abs ( x : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
54
43
vm. _abs ( & x)
@@ -343,6 +332,17 @@ mod builtins {
343
332
call_object_format ( vm, value, None , format_spec. as_str ( ) )
344
333
}
345
334
335
+ #[ pyfunction]
336
+ fn gc ( ) -> PyResult < usize > {
337
+ #[ cfg( feature = "gc" ) ]
338
+ {
339
+ use crate :: object:: gc:: GLOBAL_COLLECTOR ;
340
+ Ok ( GLOBAL_COLLECTOR . force_gc ( ) )
341
+ }
342
+ #[ cfg( not( feature = "gc" ) ) ]
343
+ Ok ( 0 )
344
+ }
345
+
346
346
#[ pyfunction]
347
347
fn getattr (
348
348
obj : PyObjectRef ,
You can’t perform that action at this time.
0 commit comments