Skip to content

Commit 2ee72ba

Browse files
committed
auto merge of rust-lang#10439 : brson/rust/rmcxx, r=bstrie
2 parents 11b0784 + 6b6f89b commit 2ee72ba

File tree

5 files changed

+10
-141
lines changed

5 files changed

+10
-141
lines changed

src/rt/rust_builtin.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/* Foreign builtins. */
1212

13-
#include "rust_util.h"
1413
#include "sync/lock_and_signal.h"
1514
#include "vg/valgrind.h"
1615

@@ -234,6 +233,16 @@ precise_time_ns(uint64_t *ns) {
234233
#endif
235234
}
236235

236+
struct
237+
rust_vec
238+
{
239+
size_t fill; // in bytes; if zero, heapified
240+
size_t alloc; // in bytes
241+
uint8_t data[0];
242+
};
243+
244+
typedef rust_vec rust_str;
245+
237246
struct rust_tm {
238247
int32_t tm_sec;
239248
int32_t tm_min;

src/rt/rust_test_helpers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// Helper functions used only in tests
1212

13-
#include "rust_util.h"
1413
#include "sync/lock_and_signal.h"
1514

1615
// These functions are used in the unit tests for C ABI calls.

src/rt/rust_type.h

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/rt/rust_upcall.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
#include "rust_globals.h"
20-
#include "rust_util.h"
2120

2221
//Unwinding ABI declarations.
2322
typedef int _Unwind_Reason_Code;

src/rt/rust_util.h

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)