File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ mod impls {
162
162
$(
163
163
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
164
164
impl Clone for $t {
165
+ #[ inline]
165
166
fn clone( & self ) -> Self {
166
167
* self
167
168
}
@@ -179,20 +180,23 @@ mod impls {
179
180
180
181
#[ stable( feature = "never_type" , since = "1.26.0" ) ]
181
182
impl Clone for ! {
183
+ #[ inline]
182
184
fn clone ( & self ) -> Self {
183
185
* self
184
186
}
185
187
}
186
188
187
189
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
188
190
impl < T : ?Sized > Clone for * const T {
191
+ #[ inline]
189
192
fn clone ( & self ) -> Self {
190
193
* self
191
194
}
192
195
}
193
196
194
197
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
195
198
impl < T : ?Sized > Clone for * mut T {
199
+ #[ inline]
196
200
fn clone ( & self ) -> Self {
197
201
* self
198
202
}
@@ -201,6 +205,7 @@ mod impls {
201
205
// Shared references can be cloned, but mutable references *cannot*!
202
206
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
203
207
impl < ' a , T : ?Sized > Clone for & ' a T {
208
+ #[ inline]
204
209
fn clone ( & self ) -> Self {
205
210
* self
206
211
}
You can’t perform that action at this time.
0 commit comments