Skip to content

Commit df7f21d

Browse files
committed
Reformat for new syntax
1 parent 0e3ee39 commit df7f21d

File tree

723 files changed

+28821
-31830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

723 files changed

+28821
-31830
lines changed

src/comp/back/abi.rs

+58-58
Original file line numberDiff line numberDiff line change
@@ -2,126 +2,126 @@
22

33

44
// FIXME: Most of these should be uints.
5-
const int rc_base_field_refcnt = 0;
5+
const rc_base_field_refcnt: int = 0;
66

77

88
// FIXME: import from std::dbg when imported consts work.
9-
const uint const_refcount = 0x7bad_face_u;
9+
const const_refcount: uint = 0x7bad_face_u;
1010

11-
const int task_field_refcnt = 0;
11+
const task_field_refcnt: int = 0;
1212

13-
const int task_field_stk = 2;
13+
const task_field_stk: int = 2;
1414

15-
const int task_field_runtime_sp = 3;
15+
const task_field_runtime_sp: int = 3;
1616

17-
const int task_field_rust_sp = 4;
17+
const task_field_rust_sp: int = 4;
1818

19-
const int task_field_gc_alloc_chain = 5;
19+
const task_field_gc_alloc_chain: int = 5;
2020

21-
const int task_field_dom = 6;
21+
const task_field_dom: int = 6;
2222

23-
const int n_visible_task_fields = 7;
23+
const n_visible_task_fields: int = 7;
2424

25-
const int dom_field_interrupt_flag = 1;
25+
const dom_field_interrupt_flag: int = 1;
2626

27-
const int frame_glue_fns_field_mark = 0;
27+
const frame_glue_fns_field_mark: int = 0;
2828

29-
const int frame_glue_fns_field_drop = 1;
29+
const frame_glue_fns_field_drop: int = 1;
3030

31-
const int frame_glue_fns_field_reloc = 2;
31+
const frame_glue_fns_field_reloc: int = 2;
3232

33-
const int box_rc_field_refcnt = 0;
33+
const box_rc_field_refcnt: int = 0;
3434

35-
const int box_rc_field_body = 1;
35+
const box_rc_field_body: int = 1;
3636

37-
const int general_code_alignment = 16;
37+
const general_code_alignment: int = 16;
3838

39-
const int vec_elt_rc = 0;
39+
const vec_elt_rc: int = 0;
4040

41-
const int vec_elt_alloc = 1;
41+
const vec_elt_alloc: int = 1;
4242

43-
const int vec_elt_fill = 2;
43+
const vec_elt_fill: int = 2;
4444

45-
const int vec_elt_pad = 3;
45+
const vec_elt_pad: int = 3;
4646

47-
const int vec_elt_data = 4;
47+
const vec_elt_data: int = 4;
4848

49-
const int tydesc_field_first_param = 0;
49+
const tydesc_field_first_param: int = 0;
5050

51-
const int tydesc_field_size = 1;
51+
const tydesc_field_size: int = 1;
5252

53-
const int tydesc_field_align = 2;
53+
const tydesc_field_align: int = 2;
5454

55-
const int tydesc_field_copy_glue = 3;
55+
const tydesc_field_copy_glue: int = 3;
5656

57-
const int tydesc_field_drop_glue = 4;
57+
const tydesc_field_drop_glue: int = 4;
5858

59-
const int tydesc_field_free_glue = 5;
59+
const tydesc_field_free_glue: int = 5;
6060

61-
const int tydesc_field_sever_glue = 6;
61+
const tydesc_field_sever_glue: int = 6;
6262

63-
const int tydesc_field_mark_glue = 7;
63+
const tydesc_field_mark_glue: int = 7;
6464

6565

6666
// FIXME no longer used in rustc, drop when rustboot is gone
67-
const int tydesc_field_obj_drop_glue = 8;
67+
const tydesc_field_obj_drop_glue: int = 8;
6868

69-
const int tydesc_field_is_stateful = 9;
69+
const tydesc_field_is_stateful: int = 9;
7070

71-
const int tydesc_field_cmp_glue = 10;
71+
const tydesc_field_cmp_glue: int = 10;
7272

73-
const int n_tydesc_fields = 11;
73+
const n_tydesc_fields: int = 11;
7474

75-
const uint cmp_glue_op_eq = 0u;
75+
const cmp_glue_op_eq: uint = 0u;
7676

77-
const uint cmp_glue_op_lt = 1u;
77+
const cmp_glue_op_lt: uint = 1u;
7878

79-
const uint cmp_glue_op_le = 2u;
79+
const cmp_glue_op_le: uint = 2u;
8080

81-
const int obj_field_vtbl = 0;
81+
const obj_field_vtbl: int = 0;
8282

83-
const int obj_field_box = 1;
83+
const obj_field_box: int = 1;
8484

85-
const int obj_body_elt_tydesc = 0;
85+
const obj_body_elt_tydesc: int = 0;
8686

87-
const int obj_body_elt_typarams = 1;
87+
const obj_body_elt_typarams: int = 1;
8888

89-
const int obj_body_elt_fields = 2;
89+
const obj_body_elt_fields: int = 2;
9090

9191
// The base object to which an anonymous object is attached.
92-
const int obj_body_elt_with_obj = 3;
92+
const obj_body_elt_with_obj: int = 3;
9393

9494
// The two halves of a closure: code and environment.
95-
const int fn_field_code = 0;
96-
const int fn_field_box = 1;
95+
const fn_field_code: int = 0;
96+
const fn_field_box: int = 1;
9797

98-
const int closure_elt_tydesc = 0;
98+
const closure_elt_tydesc: int = 0;
9999

100-
const int closure_elt_target = 1;
100+
const closure_elt_target: int = 1;
101101

102-
const int closure_elt_bindings = 2;
102+
const closure_elt_bindings: int = 2;
103103

104-
const int closure_elt_ty_params = 3;
104+
const closure_elt_ty_params: int = 3;
105105

106-
const uint ivec_default_length = 4u;
106+
const ivec_default_length: uint = 4u;
107107

108-
const uint ivec_elt_len = 0u;
108+
const ivec_elt_len: uint = 0u;
109109

110-
const uint ivec_elt_alen = 1u;
110+
const ivec_elt_alen: uint = 1u;
111111

112-
const uint ivec_elt_elems = 2u;
112+
const ivec_elt_elems: uint = 2u;
113113

114-
const uint ivec_heap_stub_elt_zero = 0u;
114+
const ivec_heap_stub_elt_zero: uint = 0u;
115115

116-
const uint ivec_heap_stub_elt_alen = 1u;
116+
const ivec_heap_stub_elt_alen: uint = 1u;
117117

118-
const uint ivec_heap_stub_elt_ptr = 2u;
118+
const ivec_heap_stub_elt_ptr: uint = 2u;
119119

120-
const uint ivec_heap_elt_len = 0u;
120+
const ivec_heap_elt_len: uint = 0u;
121121

122-
const uint ivec_heap_elt_elems = 1u;
122+
const ivec_heap_elt_elems: uint = 1u;
123123

124-
const int worst_case_glue_call_args = 7;
124+
const worst_case_glue_call_args: int = 7;
125125

126126
fn memcpy_glue_name() -> str { ret "rust_memcpy_glue"; }
127127

0 commit comments

Comments
 (0)