@@ -250,9 +250,9 @@ impl<I: Interner> Clone for TyKind<I> {
250
250
match self {
251
251
Bool => Bool ,
252
252
Char => Char ,
253
- Int ( i) => Int ( i . clone ( ) ) ,
254
- Uint ( u) => Uint ( u . clone ( ) ) ,
255
- Float ( f) => Float ( f . clone ( ) ) ,
253
+ Int ( i) => Int ( * i ) ,
254
+ Uint ( u) => Uint ( * u ) ,
255
+ Float ( f) => Float ( * f ) ,
256
256
Adt ( d, s) => Adt ( d. clone ( ) , s. clone ( ) ) ,
257
257
Foreign ( d) => Foreign ( d. clone ( ) ) ,
258
258
Str => Str ,
@@ -262,15 +262,15 @@ impl<I: Interner> Clone for TyKind<I> {
262
262
Ref ( r, t, m) => Ref ( r. clone ( ) , t. clone ( ) , m. clone ( ) ) ,
263
263
FnDef ( d, s) => FnDef ( d. clone ( ) , s. clone ( ) ) ,
264
264
FnPtr ( s) => FnPtr ( s. clone ( ) ) ,
265
- Dynamic ( p, r, repr) => Dynamic ( p. clone ( ) , r. clone ( ) , repr. clone ( ) ) ,
265
+ Dynamic ( p, r, repr) => Dynamic ( p. clone ( ) , r. clone ( ) , * repr) ,
266
266
Closure ( d, s) => Closure ( d. clone ( ) , s. clone ( ) ) ,
267
267
Generator ( d, s, m) => Generator ( d. clone ( ) , s. clone ( ) , m. clone ( ) ) ,
268
268
GeneratorWitness ( g) => GeneratorWitness ( g. clone ( ) ) ,
269
269
Never => Never ,
270
270
Tuple ( t) => Tuple ( t. clone ( ) ) ,
271
271
Alias ( k, p) => Alias ( * k, p. clone ( ) ) ,
272
272
Param ( p) => Param ( p. clone ( ) ) ,
273
- Bound ( d, b) => Bound ( d . clone ( ) , b. clone ( ) ) ,
273
+ Bound ( d, b) => Bound ( * d , b. clone ( ) ) ,
274
274
Placeholder ( p) => Placeholder ( p. clone ( ) ) ,
275
275
Infer ( t) => Infer ( t. clone ( ) ) ,
276
276
Error ( e) => Error ( e. clone ( ) ) ,
@@ -936,7 +936,7 @@ impl<I: Interner> Clone for RegionKind<I> {
936
936
fn clone ( & self ) -> Self {
937
937
match self {
938
938
ReEarlyBound ( r) => ReEarlyBound ( r. clone ( ) ) ,
939
- ReLateBound ( d, r) => ReLateBound ( d . clone ( ) , r. clone ( ) ) ,
939
+ ReLateBound ( d, r) => ReLateBound ( * d , r. clone ( ) ) ,
940
940
ReFree ( r) => ReFree ( r. clone ( ) ) ,
941
941
ReStatic => ReStatic ,
942
942
ReVar ( r) => ReVar ( r. clone ( ) ) ,
0 commit comments