@@ -8,7 +8,6 @@ pub struct Builtins<'a> {
8
8
pub rust_string : bool ,
9
9
pub rust_str : bool ,
10
10
pub rust_slice : bool ,
11
- pub rust_mut_slice : bool ,
12
11
pub rust_box : bool ,
13
12
pub rust_vec : bool ,
14
13
pub rust_fn : bool ,
@@ -23,8 +22,6 @@ pub struct Builtins<'a> {
23
22
pub rust_str_repr : bool ,
24
23
pub rust_slice_new : bool ,
25
24
pub rust_slice_repr : bool ,
26
- pub rust_mut_slice_new : bool ,
27
- pub rust_mut_slice_repr : bool ,
28
25
pub exception : bool ,
29
26
pub relocatable : bool ,
30
27
pub friend_impl : bool ,
@@ -62,10 +59,6 @@ pub(super) fn write(out: &mut OutFile) {
62
59
builtin. friend_impl = true ;
63
60
}
64
61
65
- if builtin. rust_mut_slice {
66
- builtin. friend_impl = true ;
67
- }
68
-
69
62
if builtin. rust_box {
70
63
include. new = true ;
71
64
include. type_traits = true ;
@@ -119,7 +112,6 @@ pub(super) fn write(out: &mut OutFile) {
119
112
ifndef:: write ( out, builtin. rust_string , "CXXBRIDGE05_RUST_STRING" ) ;
120
113
ifndef:: write ( out, builtin. rust_str , "CXXBRIDGE05_RUST_STR" ) ;
121
114
ifndef:: write ( out, builtin. rust_slice , "CXXBRIDGE05_RUST_SLICE" ) ;
122
- ifndef:: write ( out, builtin. rust_mut_slice , "CXXBRIDGE05_RUST_MUT_SLICE" ) ;
123
115
ifndef:: write ( out, builtin. rust_box , "CXXBRIDGE05_RUST_BOX" ) ;
124
116
ifndef:: write ( out, builtin. unsafe_bitcopy , "CXXBRIDGE05_RUST_BITCOPY" ) ;
125
117
ifndef:: write ( out, builtin. rust_vec , "CXXBRIDGE05_RUST_VEC" ) ;
@@ -214,33 +206,6 @@ pub(super) fn write(out: &mut OutFile) {
214
206
writeln ! ( out, "}};" ) ;
215
207
}
216
208
217
- if builtin. rust_mut_slice_new || builtin. rust_mut_slice_repr {
218
- out. next_section ( ) ;
219
- writeln ! ( out, "template <typename T>" ) ;
220
- writeln ! ( out, "class impl<MutSlice<T>> final {{" ) ;
221
- writeln ! ( out, "public:" ) ;
222
- if builtin. rust_mut_slice_new {
223
- writeln ! (
224
- out,
225
- " static MutSlice<T> slice(repr::PtrLen repr) noexcept {{" ,
226
- ) ;
227
- writeln ! (
228
- out,
229
- " return {{static_cast<T *>(repr.ptr), repr.len}};" ,
230
- ) ;
231
- writeln ! ( out, " }}" ) ;
232
- }
233
- if builtin. rust_mut_slice_repr {
234
- writeln ! (
235
- out,
236
- " static repr::PtrLen repr(MutSlice<T> slice) noexcept {{" ,
237
- ) ;
238
- writeln ! ( out, " return repr::PtrLen{{slice.ptr, slice.len}};" ) ;
239
- writeln ! ( out, " }}" ) ;
240
- }
241
- writeln ! ( out, "}};" ) ;
242
- }
243
-
244
209
if builtin. rust_error {
245
210
out. next_section ( ) ;
246
211
writeln ! ( out, "template <>" ) ;
0 commit comments