summary refs log tree commit diff stats
path: root/tests/iter
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-01-26 15:04:16 +0800
committerGitHub <noreply@github.com>2024-01-26 08:04:16 +0100
commit24a606902a4e99ac3d7f58b89db3b023061bc8b0 (patch)
treea202199ec969eeee8873ec9758492d0c5ff84666 /tests/iter
parent243f1e6cd5e147fdd96b5298e4df44546e5eea28 (diff)
downloadNim-24a606902a4e99ac3d7f58b89db3b023061bc8b0.tar.gz
fixes #23247; don't destroy openarray since it doesn't own the data (#23254)
fixes #23247
closes #23251 (which accounts for why the openarray type is lifted
because ops are lifted for openarray conversions)

related: https://github.com/nim-lang/Nim/pull/18713

It seems to me that openarray doesn't own the data, so it cannot destroy
itself. The same case should be applied to
https://github.com/nim-lang/Nim/issues/19435. It shouldn't be destroyed
even openarray can have a destructor. A cleanup will be followed for
https://github.com/nim-lang/Nim/pull/19723 if it makes sense.

According to https://github.com/nim-lang/Nim/pull/12073, it lifts
destructor for openarray when openarray is sunk into the function, when
means `sink openarray` owns the data and needs to destroy it. In other
cases, destructor shouldn't be lifted for `openarray` in the first place
and it shouldn't destroy the data if it doesn't own it.

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tests/iter')
0 files changed, 0 insertions, 0 deletions
l-code <tommy.ael@gmail.com> 2016-11-09 01:26:06 +0100 committer ael-code <tommy.ael@gmail.com> 2016-11-25 17:34:57 +0100 Make use of standard logging library to handle logs' href='/akspecs/ranger/commit/ranger/ext/logutils.py?id=3c8086ece60c839eaaac868678415a5e85eb13db'>3c8086ec ^
3c8086ec ^
1687e0f4 ^
3c8086ec ^

1687e0f4 ^
3c8086ec ^
84a22ae0 ^
3c8086ec ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75