Revert "Introduce explicit copy (#15330)" (#15346)

This reverts commit a3e9cc5234.
This commit is contained in:
Andreas Rumpf 2020-09-16 23:24:17 +02:00 • committed by GitHub
commit bc9967f05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 28 deletions

View file

@ -264,11 +264,6 @@ proc move*[T](x: var T): T {.magic: "Move", noSideEffect.} =
result = x
wasMoved(x)
func copy*[T](x: T): T {.inline.} =
## make explicit copy of the argument `x`, used to signal to the compiler
## the copy is intentional
result = x
type
range*[T]{.magic: "Range".} ## Generic type to construct range types.
array*[I, T]{.magic: "Array".} ## Generic type to construct