Skip to content

Commit d5c70a1

Browse files
ydnardeadprogram
authored andcommitted
reflect, internal/reflectlite: embed reflectlite types into reflect types
1 parent bbb2b0c commit d5c70a1

16 files changed

+3861
-3182
lines changed

src/reflect/deepequal.go renamed to src/internal/reflectlite/deepequal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Deep equality test via reflection
66

7-
package reflect
7+
package reflectlite
88

99
import "unsafe"
1010

@@ -15,7 +15,7 @@ import "unsafe"
1515
type visit struct {
1616
a1 unsafe.Pointer
1717
a2 unsafe.Pointer
18-
typ *rawType
18+
typ *RawType
1919
}
2020

2121
// Tests for deep equality using reflected types. The map argument tracks

src/reflect/endian-big.go renamed to src/internal/reflectlite/endian_big.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build mips
22

3-
package reflect
3+
package reflectlite
44

55
import "unsafe"
66

src/reflect/endian-little.go renamed to src/internal/reflectlite/endian_little.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build !mips
22

3-
package reflect
3+
package reflectlite
44

55
import "unsafe"
66

src/reflect/intw.go renamed to src/internal/reflectlite/intw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build !avr
22

3-
package reflect
3+
package reflectlite
44

55
// intw is an integer type, used in places where an int is typically required,
66
// except architectures where the size of an int != word size.

src/reflect/intw_avr.go renamed to src/internal/reflectlite/intw_avr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build avr
22

3-
package reflect
3+
package reflectlite
44

55
// intw is an integer type, used in places where an int is typically required,
66
// except architectures where the size of an int != word size.

src/reflect/intw_test.go renamed to src/internal/reflectlite/intw_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build !avr
22

3-
package reflect_test
3+
package reflectlite_test
44

55
import (
66
"reflect"

src/internal/reflectlite/reflect.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build never
2+
13
package reflectlite
24

35
import "reflect"

0 commit comments

Comments
 (0)