@@ -108,7 +108,7 @@ class arena {
108
108
109
109
template <typename T>
110
110
inline size_t
111
- alignof () {
111
+ rust_alignof () {
112
112
#ifdef _MSC_VER
113
113
return __alignof (T);
114
114
#else
@@ -118,7 +118,7 @@ alignof() {
118
118
119
119
template <>
120
120
inline size_t
121
- alignof <double >() {
121
+ rust_alignof <double >() {
122
122
return 4 ;
123
123
}
124
124
@@ -649,7 +649,7 @@ class size_of : public ctxt<size_of> {
649
649
}
650
650
651
651
template <typename T>
652
- void walk_number1 () { sa.set (sizeof (T), alignof <T>()); }
652
+ void walk_number1 () { sa.set (sizeof (T), rust_alignof <T>()); }
653
653
654
654
void compute_tag_size (tag_info &tinfo);
655
655
@@ -851,7 +851,7 @@ namespace shape {
851
851
}
852
852
853
853
#define DATA_SIMPLE (ty, call ) \
854
- ALIGN_TO (alignof <ty>()); \
854
+ ALIGN_TO (rust_alignof <ty>()); \
855
855
U end_dp = dp + sizeof (ty); \
856
856
static_cast <T *>(this )->call; \
857
857
dp = end_dp;
@@ -899,21 +899,21 @@ class data : public ctxt< data<T,U> > {
899
899
void walk_uniq1 () { DATA_SIMPLE (void *, walk_uniq2 ()); }
900
900
901
901
void walk_fn1 (char code) {
902
- ALIGN_TO (alignof <void *>());
902
+ ALIGN_TO (rust_alignof <void *>());
903
903
U next_dp = dp + sizeof (void *) * 2 ;
904
904
static_cast <T *>(this )->walk_fn2 (code);
905
905
dp = next_dp;
906
906
}
907
907
908
908
void walk_iface1 () {
909
- ALIGN_TO (alignof <void *>());
909
+ ALIGN_TO (rust_alignof <void *>());
910
910
U next_dp = dp + sizeof (void *);
911
911
static_cast <T *>(this )->walk_iface2 ();
912
912
dp = next_dp;
913
913
}
914
914
915
915
void walk_tydesc1 (char kind) {
916
- ALIGN_TO (alignof <void *>());
916
+ ALIGN_TO (rust_alignof <void *>());
917
917
U next_dp = dp + sizeof (void *);
918
918
static_cast <T *>(this )->walk_tydesc2 (kind);
919
919
dp = next_dp;
@@ -938,7 +938,7 @@ class data : public ctxt< data<T,U> > {
938
938
template <typename WN>
939
939
void walk_number1 () {
940
940
// DATA_SIMPLE(W, walk_number2<W>());
941
- ALIGN_TO (alignof <WN>());
941
+ ALIGN_TO (rust_alignof <WN>());
942
942
U end_dp = dp + sizeof (WN);
943
943
T* t = static_cast <T *>(this );
944
944
t->template walk_number2 <WN>();
@@ -1003,7 +1003,7 @@ data<T,U>::walk_tag1(tag_info &tinfo) {
1003
1003
size_of::compute_tag_size (*this , tinfo);
1004
1004
1005
1005
if (tinfo.variant_count > 1 )
1006
- ALIGN_TO (alignof <tag_align_t >());
1006
+ ALIGN_TO (rust_alignof <tag_align_t >());
1007
1007
1008
1008
U end_dp = dp + tinfo.tag_sa .size ;
1009
1009
0 commit comments