@@ -55,8 +55,8 @@ namespace rust {
55
55
static String lossy (const char16_t *) noexcept ;
56
56
static String lossy (const char16_t *, std::size_t ) noexcept ;
57
57
58
- String &operator =(const String &) & noexcept ;
59
- String &operator =(String &&) & noexcept ;
58
+ String &operator =(const String &) &noexcept ;
59
+ String &operator =(String &&) &noexcept ;
60
60
61
61
explicit operator std::string () const ;
62
62
@@ -115,7 +115,7 @@ namespace rust {
115
115
Str (const char *);
116
116
Str (const char *, std::size_t );
117
117
118
- Str &operator =(const Str &) & noexcept = default ;
118
+ Str &operator =(const Str &) &noexcept = default ;
119
119
120
120
explicit operator std::string () const ;
121
121
@@ -163,8 +163,8 @@ namespace rust {
163
163
struct copy_assignable_if <false > {
164
164
copy_assignable_if () noexcept = default ;
165
165
copy_assignable_if (const copy_assignable_if &) noexcept = default ;
166
- copy_assignable_if &operator =(const copy_assignable_if &) & noexcept = delete ;
167
- copy_assignable_if &operator =(copy_assignable_if &&) & noexcept = default ;
166
+ copy_assignable_if &operator =(const copy_assignable_if &) &noexcept = delete ;
167
+ copy_assignable_if &operator =(copy_assignable_if &&) &noexcept = default ;
168
168
};
169
169
} // namespace detail
170
170
@@ -177,8 +177,8 @@ namespace rust {
177
177
Slice () noexcept ;
178
178
Slice (T *, std::size_t count) noexcept ;
179
179
180
- Slice &operator =(const Slice<T> &) & noexcept = default ;
181
- Slice &operator =(Slice<T> &&) & noexcept = default ;
180
+ Slice &operator =(const Slice<T> &) &noexcept = default ;
181
+ Slice &operator =(Slice<T> &&) &noexcept = default ;
182
182
183
183
T *data () const noexcept ;
184
184
std::size_t size () const noexcept ;
@@ -265,7 +265,7 @@ namespace rust {
265
265
explicit Box (const T &);
266
266
explicit Box (T &&);
267
267
268
- Box &operator =(Box &&) & noexcept ;
268
+ Box &operator =(Box &&) &noexcept ;
269
269
270
270
const T *operator ->() const noexcept ;
271
271
const T &operator *() const noexcept ;
@@ -310,7 +310,7 @@ namespace rust {
310
310
Vec (Vec &&) noexcept ;
311
311
~Vec () noexcept ;
312
312
313
- Vec &operator =(Vec &&) & noexcept ;
313
+ Vec &operator =(Vec &&) &noexcept ;
314
314
Vec &operator =(const Vec &) &;
315
315
316
316
std::size_t size () const noexcept ;
@@ -391,7 +391,7 @@ namespace rust {
391
391
~Error () noexcept override ;
392
392
393
393
Error &operator =(const Error &) &;
394
- Error &operator =(Error &&) & noexcept ;
394
+ Error &operator =(Error &&) &noexcept ;
395
395
396
396
const char *what () const noexcept override ;
397
397
@@ -758,7 +758,7 @@ namespace rust {
758
758
}
759
759
760
760
template <typename T>
761
- Box<T> &Box<T>::operator =(Box &&other) & noexcept {
761
+ Box<T> &Box<T>::operator =(Box &&other) &noexcept {
762
762
if (this ->ptr ) {
763
763
this ->drop ();
764
764
}
@@ -849,7 +849,7 @@ namespace rust {
849
849
}
850
850
851
851
template <typename T>
852
- Vec<T> &Vec<T>::operator =(Vec &&other) & noexcept {
852
+ Vec<T> &Vec<T>::operator =(Vec &&other) &noexcept {
853
853
this ->drop ();
854
854
this ->repr = other.repr ;
855
855
new (&other) Vec ();
0 commit comments